From 9d9c4cac450fa4d10af7f5fa32541257bb640943 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Mon, 25 Aug 2025 02:47:08 +0000 Subject: [PATCH] 24.03-lts-sp1 update tomcat to 11.0.10 --- .../tomcat/11.0.10/24.03-lts-sp1/Dockerfile | 36 +++++++++++++++++++ Others/tomcat/README.md | 3 +- Others/tomcat/doc/image-info.yml | 1 + Others/tomcat/meta.yml | 4 ++- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 Others/tomcat/11.0.10/24.03-lts-sp1/Dockerfile diff --git a/Others/tomcat/11.0.10/24.03-lts-sp1/Dockerfile b/Others/tomcat/11.0.10/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..3ca97c0b --- /dev/null +++ b/Others/tomcat/11.0.10/24.03-lts-sp1/Dockerfile @@ -0,0 +1,36 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} +ARG VERSION=11.0.10 +ARG TARGETARCH +ARG BUILDARCH +ARG JDK_VERSION=17.0.12 + +RUN dnf update -y \ + && dnf install -y git wget ant \ + && dnf clean all \ + && rm -rf /var/cache/dnf + +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + BUILDARCH="x64"; \ + elif [ "$TARGETARCH" = "arm64" ]; then \ + BUILDARCH="aarch64"; \ + fi \ + && cd / \ + && wget https://download.oracle.com/java/17/archive/jdk-${JDK_VERSION}_linux-${BUILDARCH}_bin.tar.gz \ + && tar -zxvf jdk-${JDK_VERSION}_linux-${BUILDARCH}_bin.tar.gz \ + && rm -f jdk-${JDK_VERSION}_linux-${BUILDARCH}_bin.tar.gz + +ENV JAVA_HOME=/jdk-17.0.12 +ENV PATH=/jdk-17.0.12/bin:$PATH + +WORKDIR /opt + +RUN git clone -b ${VERSION} --depth 1 https://github.com/apache/tomcat.git \ + && cd tomcat \ + && ant + +WORKDIR /opt/tomcat/output/build/bin + +EXPOSE 8080 + +CMD ["./catalina.sh", "run"] \ No newline at end of file diff --git a/Others/tomcat/README.md b/Others/tomcat/README.md index fa9631ed..b90f71fc 100644 --- a/Others/tomcat/README.md +++ b/Others/tomcat/README.md @@ -13,6 +13,7 @@ The tag of each `tomcat` docker image is consist of the version of `tomcat` and | Tag | Currently | Architectures | |----------|-------------|------------------| +|[11.0.10-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/tomcat/11.0.10/24.03-lts-sp1/Dockerfile) | tomcat 11.0.10 on openEuler 24.03-LTS-SP1 | amd64, arm64 | |[9.0.10-oe2003sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/tomcat/9.0.10/20.03-lts-sp1/Dockerfile)| Tomcat 9.0.10 on openEuler 20.03-LTS-SP1 | amd64, arm64 | |[11.0.7-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/tomcat/11.0.7/24.03-lts-sp1/Dockerfile)| Tomcat 11.0.7 on openEuler 24.03-LTS-SP1 | amd64, arm64 | @@ -31,4 +32,4 @@ docker run -d openeuler/tomcat:9.0.10-20.03-lts-sp1 ``` ## Operating System -Linux/Unix, ARM64 or x86-64 architecture. +Linux/Unix, ARM64 or x86-64 architecture. \ No newline at end of file diff --git a/Others/tomcat/doc/image-info.yml b/Others/tomcat/doc/image-info.yml index 562d58ca..62415059 100644 --- a/Others/tomcat/doc/image-info.yml +++ b/Others/tomcat/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[11.0.10-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/tomcat/11.0.10/24.03-lts-sp1/Dockerfile) | tomcat 11.0.10 on openEuler 24.03-LTS-SP1 | amd64, arm64 | |[9.0.10-oe2003sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/tomcat/9.0.10/20.03-lts-sp1/Dockerfile)| Tomcat 9.0.10 on openEuler 20.03-LTS-SP1 | amd64, arm64 | |[11.0.7-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/tomcat/11.0.7/24.03-lts-sp1/Dockerfile)| Tomcat 11.0.7 on openEuler 24.03-LTS-SP1 | amd64, arm64 | diff --git a/Others/tomcat/meta.yml b/Others/tomcat/meta.yml index 0f54605f..0d5bcfff 100644 --- a/Others/tomcat/meta.yml +++ b/Others/tomcat/meta.yml @@ -4,4 +4,6 @@ path: 7.7.1/24.03-lts-sp1/Dockerfile 11.0.9-oe2403sp1: - path: 11.0.9/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: 11.0.9/24.03-lts-sp1/Dockerfile +11.0.10-oe2403sp1: + path: 11.0.10/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee