Accepting request 1230657 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS OBS-URL: https://build.opensuse.org/request/show/1230657 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-tomcat-10-image?expand=0&rev=12
This commit is contained in:
commit
b3e6682405
@ -25,7 +25,7 @@ FROM opensuse/tumbleweed:latest AS builder
|
|||||||
COPY --from=target / /target
|
COPY --from=target / /target
|
||||||
|
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; \
|
||||||
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 curl sed java-17-openjdk java-17-openjdk-headless; \
|
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 java-17-openjdk java-17-openjdk-headless; \
|
||||||
zypper -n --installroot /target remove util-linux; \
|
zypper -n --installroot /target remove util-linux; \
|
||||||
zypper -n clean; \
|
zypper -n clean; \
|
||||||
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
||||||
@ -58,11 +58,14 @@ CMD ["/usr/libexec/tomcat/server", "start"]
|
|||||||
EXPOSE 8080/tcp
|
EXPOSE 8080/tcp
|
||||||
RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
|
RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
|
||||||
RUN set -euo pipefail; ln -s /usr/share/tomcat /usr/local/tomcat
|
RUN set -euo pipefail; ln -s /usr/share/tomcat /usr/local/tomcat
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; while IFS= read -r line; do \
|
||||||
sed -i /etc/tomcat/logging.properties \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler|' \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[\/manager\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler|' \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[\/host-manager\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/host-manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler|'
|
echo "$line" >> /tmp/logging.properties; \
|
||||||
|
done < /usr/share/tomcat/conf/logging.properties; \
|
||||||
|
|
||||||
|
mv /tmp/logging.properties /usr/share/tomcat/conf/logging.properties
|
||||||
|
|
||||||
WORKDIR $CATALINA_HOME
|
WORKDIR $CATALINA_HOME
|
||||||
USER tomcat
|
USER tomcat
|
||||||
|
@ -25,7 +25,7 @@ FROM opensuse/tumbleweed:latest AS builder
|
|||||||
COPY --from=target / /target
|
COPY --from=target / /target
|
||||||
|
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; \
|
||||||
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 curl sed java-21-openjdk java-21-openjdk-headless; \
|
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 java-21-openjdk java-21-openjdk-headless; \
|
||||||
zypper -n --installroot /target remove util-linux; \
|
zypper -n --installroot /target remove util-linux; \
|
||||||
zypper -n clean; \
|
zypper -n clean; \
|
||||||
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
||||||
@ -58,11 +58,14 @@ CMD ["/usr/libexec/tomcat/server", "start"]
|
|||||||
EXPOSE 8080/tcp
|
EXPOSE 8080/tcp
|
||||||
RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
|
RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
|
||||||
RUN set -euo pipefail; ln -s /usr/share/tomcat /usr/local/tomcat
|
RUN set -euo pipefail; ln -s /usr/share/tomcat /usr/local/tomcat
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; while IFS= read -r line; do \
|
||||||
sed -i /etc/tomcat/logging.properties \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler|' \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[\/manager\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler|' \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[\/host-manager\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/host-manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler|'
|
echo "$line" >> /tmp/logging.properties; \
|
||||||
|
done < /usr/share/tomcat/conf/logging.properties; \
|
||||||
|
|
||||||
|
mv /tmp/logging.properties /usr/share/tomcat/conf/logging.properties
|
||||||
|
|
||||||
WORKDIR $CATALINA_HOME
|
WORKDIR $CATALINA_HOME
|
||||||
USER tomcat
|
USER tomcat
|
||||||
|
@ -25,7 +25,7 @@ FROM opensuse/tumbleweed:latest AS builder
|
|||||||
COPY --from=target / /target
|
COPY --from=target / /target
|
||||||
|
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; \
|
||||||
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 curl sed java-23-openjdk java-23-openjdk-headless; \
|
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 java-23-openjdk java-23-openjdk-headless; \
|
||||||
zypper -n --installroot /target remove util-linux; \
|
zypper -n --installroot /target remove util-linux; \
|
||||||
zypper -n clean; \
|
zypper -n clean; \
|
||||||
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
||||||
@ -58,11 +58,14 @@ CMD ["/usr/libexec/tomcat/server", "start"]
|
|||||||
EXPOSE 8080/tcp
|
EXPOSE 8080/tcp
|
||||||
RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
|
RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat
|
||||||
RUN set -euo pipefail; ln -s /usr/share/tomcat /usr/local/tomcat
|
RUN set -euo pipefail; ln -s /usr/share/tomcat /usr/local/tomcat
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; while IFS= read -r line; do \
|
||||||
sed -i /etc/tomcat/logging.properties \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler|' \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[\/manager\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler|' \
|
line=${line/org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[\/host-manager\]\.handlers =*/org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler}; \
|
||||||
-e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/host-manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler|'
|
echo "$line" >> /tmp/logging.properties; \
|
||||||
|
done < /usr/share/tomcat/conf/logging.properties; \
|
||||||
|
|
||||||
|
mv /tmp/logging.properties /usr/share/tomcat/conf/logging.properties
|
||||||
|
|
||||||
WORKDIR $CATALINA_HOME
|
WORKDIR $CATALINA_HOME
|
||||||
USER tomcat
|
USER tomcat
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 12 18:25:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- remove curl and sed from the image
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 3 13:26:37 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
Tue Dec 3 13:26:37 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user