Skip to content

Commit a658460

Browse files
authored
Merge pull request #1879 from SUSE/for-deploy-Tumbleweed
🤖: Update build recipes for Tumbleweed
2 parents d845566 + 9ca316a commit a658460

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

apache-tomcat-10-image/Dockerfile.openjdk22 renamed to apache-tomcat-10-image/Dockerfile.openjdk23

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@
1515

1616
#!UseOBSRepositories
1717

18-
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk22-%RELEASE%
19-
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk22
20-
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk22-%RELEASE%
21-
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk22
22-
#!BuildTag: opensuse/apache-tomcat:latest
18+
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk23-%RELEASE%
19+
#!BuildTag: opensuse/apache-tomcat:%%tomcat_version%%-openjdk23
20+
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk23-%RELEASE%
21+
#!BuildTag: opensuse/apache-tomcat:10.1-openjdk23
2322

2423
FROM opensuse/bci/bci-micro:latest AS target
2524
FROM opensuse/tumbleweed:latest AS builder
2625
COPY --from=target / /target
2726

2827
RUN set -euo pipefail; \
29-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 curl sed java-22-openjdk java-22-openjdk-headless; \
28+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends tomcat10 curl sed java-23-openjdk java-23-openjdk-headless; \
3029
zypper -n --installroot /target remove util-linux; \
3130
zypper -n clean; \
3231
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"
4241
LABEL org.opencontainers.image.created="%BUILDTIME%"
4342
LABEL org.opencontainers.image.vendor="openSUSE Project"
4443
LABEL org.opencontainers.image.source="%SOURCEURL%"
45-
LABEL org.opencontainers.image.ref.name="%%tomcat_version%%-openjdk22-%RELEASE%"
46-
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/apache-tomcat:%%tomcat_version%%-openjdk22-%RELEASE%"
44+
LABEL org.opencontainers.image.ref.name="%%tomcat_version%%-openjdk23-%RELEASE%"
45+
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/apache-tomcat:%%tomcat_version%%-openjdk23-%RELEASE%"
4746
LABEL org.openbuildservice.disturl="%DISTURL%"
4847
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
4948
LABEL org.opensuse.release-stage="released"
5049
# endlabelprefix
51-
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/apache-tomcat-10-image/README.openjdk22.md"
50+
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/apache-tomcat-10-image/README.openjdk23.md"
5251
LABEL io.artifacthub.package.logo-url="https://tomcat.apache.org/res/images/tomcat.png"
5352
ENV TOMCAT_MAJOR="10"
5453
ENV TOMCAT_VERSION="%%tomcat_version%%"

apache-tomcat-10-image/README.openjdk22.md renamed to apache-tomcat-10-image/README.openjdk23.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To deploy an application, copy the `.war` file into
2121
`$CATALINA_BASE/webapps` (either during a container build or by bind-mounting
2222
the directory), and launch the container using the following command:
2323
```ShellSession
24-
$ podman run -d --rm -p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk22
24+
$ podman run -d --rm -p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk23
2525
```
2626

2727
The deployed webapp is then accessible via `http://localhost:8080/$webapp_name`.
@@ -38,7 +38,7 @@ follows:
3838
```ShellSession
3939
$ chmod 0777 /path/to/my/app
4040
$ podman run --rm -d -v /path/to/my/app:/usr/share/tomcat/webapps:z \
41-
-p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk22
41+
-p 8080:8080 registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk23
4242
```
4343

4444

@@ -54,7 +54,7 @@ options to the container runtime using the `-e` flag:
5454
```ShellSession
5555
$ podman run -it --rm \
5656
-e JAVA_OPTS="-Xmx1024m" -p 8080:8080 \
57-
registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk22
57+
registry.opensuse.org/opensuse/apache-tomcat:10.1-openjdk23
5858
```
5959

6060
The image ships with `CATALINA_HOME` set to `/usr/share/tomcat`

apache-tomcat-10-image/_multibuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<multibuild>
22
<package>openjdk17</package>
33
<package>openjdk21</package>
4-
<package>openjdk22</package>
4+
<package>openjdk23</package>
55
</multibuild>

apache-tomcat-10-image/_service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<param name="package">tomcat10</param>
1313
</service>
1414
<service name="replace_using_package_version" mode="buildtime">
15-
<param name="file">Dockerfile.openjdk22</param>
15+
<param name="file">Dockerfile.openjdk23</param>
1616
<param name="regex">%%tomcat_version%%</param>
1717
<param name="package">tomcat10</param>
1818
</service>

apache-tomcat-10-image/apache-tomcat-10-image.changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Wed Oct 23 10:52:04 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
3+
4+
- build tomcat for openjdk23 rather than 22 on TW
5+
16
-------------------------------------------------------------------
27
Wed Oct 23 10:21:39 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
38

0 commit comments

Comments
 (0)