Accepting request 1217344 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS OBS-URL: https://build.opensuse.org/request/show/1217344 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-tomcat-10-image?expand=0&rev=5
This commit is contained in:
commit
9dcb3be399
@ -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 which curl sed java-17-openjdk java-17-openjdk-headless; \
|
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 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}
|
||||||
|
@ -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 which curl sed java-21-openjdk java-21-openjdk-headless; \
|
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 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}
|
||||||
|
@ -15,18 +15,17 @@
|
|||||||
|
|
||||||
#!UseOBSRepositories
|
#!UseOBSRepositories
|
||||||
|
|
||||||
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk22-%RELEASE%
|
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk23-%RELEASE%
|
||||||
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk22
|
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk23
|
||||||
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk22-%RELEASE%
|
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk23-%RELEASE%
|
||||||
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk22
|
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk23
|
||||||
#!BuildTag: opensuse/apache-tomcat:latest
|
|
||||||
|
|
||||||
FROM opensuse/bci/bci-micro:latest AS target
|
FROM opensuse/bci/bci-micro:latest AS target
|
||||||
FROM opensuse/tumbleweed:latest AS builder
|
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 which curl sed java-22-openjdk java-22-openjdk-headless; \
|
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 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}
|
||||||
@ -42,13 +41,13 @@ LABEL org.opencontainers.image.url="https://www.opensuse.org"
|
|||||||
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
||||||
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
||||||
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
||||||
LABEL org.opencontainers.image.ref.name="%%tomcat_version%%-openjdk22-%RELEASE%"
|
LABEL org.opencontainers.image.ref.name="%%tomcat_version%%-openjdk23-%RELEASE%"
|
||||||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/apache-tomcat:%%tomcat_version%%-openjdk22-%RELEASE%"
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/apache-tomcat:%%tomcat_version%%-openjdk23-%RELEASE%"
|
||||||
LABEL org.openbuildservice.disturl="%DISTURL%"
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
||||||
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
|
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
|
||||||
LABEL org.opensuse.release-stage="released"
|
LABEL org.opensuse.release-stage="released"
|
||||||
# endlabelprefix
|
# endlabelprefix
|
||||||
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/apache-tomcat-10-image/README.openjdk22.md"
|
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/apache-tomcat-10-image/README.openjdk23.md"
|
||||||
LABEL io.artifacthub.package.logo-url="https://tomcat.apache.org/res/images/tomcat.png"
|
LABEL io.artifacthub.package.logo-url="https://tomcat.apache.org/res/images/tomcat.png"
|
||||||
ENV TOMCAT_MAJOR="10"
|
ENV TOMCAT_MAJOR="10"
|
||||||
ENV TOMCAT_VERSION="%%tomcat_version%%"
|
ENV TOMCAT_VERSION="%%tomcat_version%%"
|
@ -21,7 +21,7 @@ To deploy an application, copy the `.war` file into
|
|||||||
`$CATALINA_BASE/webapps` (either during a container build or by bind-mounting
|
`$CATALINA_BASE/webapps` (either during a container build or by bind-mounting
|
||||||
the directory), and launch the container using the following command:
|
the directory), and launch the container using the following command:
|
||||||
```ShellSession
|
```ShellSession
|
||||||
$ podman run -d --rm -p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk22
|
$ podman run -d --rm -p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk23
|
||||||
```
|
```
|
||||||
|
|
||||||
The deployed webapp is then accessible via `http://localhost:8080/$webapp_name`.
|
The deployed webapp is then accessible via `http://localhost:8080/$webapp_name`.
|
||||||
@ -38,7 +38,7 @@ follows:
|
|||||||
```ShellSession
|
```ShellSession
|
||||||
$ chmod 0777 /path/to/my/app
|
$ chmod 0777 /path/to/my/app
|
||||||
$ podman run --rm -d -v /path/to/my/app:/usr/share/tomcat/webapps:z \
|
$ podman run --rm -d -v /path/to/my/app:/usr/share/tomcat/webapps:z \
|
||||||
-p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk22
|
-p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk23
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ options to the container runtime using the `-e` flag:
|
|||||||
```ShellSession
|
```ShellSession
|
||||||
$ podman run -it --rm \
|
$ podman run -it --rm \
|
||||||
-e JAVA_OPTS="-Xmx1024m" -p 8080:8080 \
|
-e JAVA_OPTS="-Xmx1024m" -p 8080:8080 \
|
||||||
registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk22
|
registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk23
|
||||||
```
|
```
|
||||||
|
|
||||||
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat`
|
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat`
|
@ -1,5 +1,5 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>openjdk17</package>
|
<package>openjdk17</package>
|
||||||
<package>openjdk21</package>
|
<package>openjdk21</package>
|
||||||
<package>openjdk22</package>
|
<package>openjdk23</package>
|
||||||
</multibuild>
|
</multibuild>
|
2
_service
2
_service
@ -12,7 +12,7 @@
|
|||||||
<param name="package">tomcat10</param>
|
<param name="package">tomcat10</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="replace_using_package_version" mode="buildtime">
|
<service name="replace_using_package_version" mode="buildtime">
|
||||||
<param name="file">Dockerfile.openjdk22</param>
|
<param name="file">Dockerfile.openjdk23</param>
|
||||||
<param name="regex">%%tomcat_version%%</param>
|
<param name="regex">%%tomcat_version%%</param>
|
||||||
<param name="package">tomcat10</param>
|
<param name="package">tomcat10</param>
|
||||||
</service>
|
</service>
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 23 10:52:04 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- build tomcat for openjdk23 rather than 22 on TW
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 23 10:21:39 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- revert temporary explicit install of which
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 14 11:26:26 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
Mon Oct 14 11:26:26 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user