|
| 1 | +# SPDX-License-Identifier: MIT |
| 2 | + |
| 3 | +# Copyright (c) 2024 SUSE LLC |
| 4 | + |
| 5 | +# All modifications and additions to the file contributed by third parties |
| 6 | +# remain the property of their copyright owners, unless otherwise agreed |
| 7 | +# upon. |
| 8 | + |
| 9 | +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. |
| 10 | +# It is maintained by the BCI team and generated by |
| 11 | +# https://github.com/SUSE/BCI-dockerfile-generator |
| 12 | + |
| 13 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 14 | +# You can contact the BCI team via https://github.com/SUSE/bci/discussions |
| 15 | + |
| 16 | + |
| 17 | +#!BuildTag: suse/tomcat:10 |
| 18 | +#!BuildTag: suse/tomcat:10-%RELEASE% |
| 19 | +#!BuildTag: suse/tomcat:%%tomcat_version%% |
| 20 | +#!BuildTag: suse/tomcat:%%tomcat_version%%-%RELEASE% |
| 21 | +#!BuildTag: suse/tomcat:%%tomcat_minor%% |
| 22 | +#!BuildTag: suse/tomcat:%%tomcat_minor%%-%RELEASE% |
| 23 | +#!BuildName: suse-tomcat-10 |
| 24 | +#!BuildVersion: 15.6.10 |
| 25 | +FROM suse/sle15:15.6 |
| 26 | + |
| 27 | +MAINTAINER SUSE LLC (https://www.suse.com/) |
| 28 | + |
| 29 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 30 | +# labelprefix=com.suse.application.tomcat |
| 31 | +LABEL org.opencontainers.image.title="SLE Apache Tomcat 10" |
| 32 | +LABEL org.opencontainers.image.description="Apache Tomcat 10 container based on the SLE Base Container Image." |
| 33 | +LABEL org.opencontainers.image.version="10" |
| 34 | +LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/" |
| 35 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 36 | +LABEL org.opencontainers.image.vendor="SUSE LLC" |
| 37 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 38 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md" |
| 39 | +LABEL io.artifacthub.package.logo-url="https://tomcat.apache.org/res/images/tomcat.png" |
| 40 | +LABEL org.opensuse.reference="registry.suse.com/suse/tomcat:10-%RELEASE%" |
| 41 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 42 | +LABEL com.suse.supportlevel="techpreview" |
| 43 | +LABEL com.suse.eula="sle-bci" |
| 44 | +LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15" |
| 45 | +LABEL com.suse.release-stage="beta" |
| 46 | +# endlabelprefix |
| 47 | + |
| 48 | +RUN set -euo pipefail; zypper -n in --no-recommends tomcat10; zypper -n clean; rm -rf /var/log/* |
| 49 | +ENV TOMCAT_MAJOR="10" |
| 50 | +ENV TOMCAT_VERSION="%%tomcat_version%%" |
| 51 | +ENV CATALINA_HOME="/usr/share/tomcat" |
| 52 | +ENV CATALINA_BASE="/usr/share/tomcat" |
| 53 | +ENV PATH="/usr/share/tomcat/bin:$PATH" |
| 54 | + |
| 55 | +CMD ["/usr/lib/tomcat/server", "start"] |
| 56 | +EXPOSE 8080 |
| 57 | +RUN set -euo pipefail; mkdir -p /var/log/tomcat; chown --recursive tomcat:tomcat /var/log/tomcat; |
| 58 | +RUN set -euo pipefail; \ |
| 59 | + sed -i /etc/tomcat/logging.properties \ |
| 60 | + -e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler|' \ |
| 61 | + -e 's|org\.apache\.catalina\.core\.ContainerBase\.\[Catalina\]\.\[localhost\]\.\[/manager\]\.handlers =.*|org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler|' \ |
| 62 | + -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|' |
| 63 | + |
| 64 | +WORKDIR $CATALINA_HOME |
| 65 | +USER tomcat |
0 commit comments