From 213d71e65b9729a4041e602929622eaafbb62614 Mon Sep 17 00:00:00 2001 From: gaohechao <1159963696@qq.com> Date: Thu, 14 Oct 2021 17:51:40 +0800 Subject: [PATCH 1/2] Add Tomcat on openEuler 20.03 LTS SP1 --- tomcat/9.0.10/20.03-lts-sp1/Dockerfile | 7 ++++++ tomcat/README.md | 30 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tomcat/9.0.10/20.03-lts-sp1/Dockerfile create mode 100644 tomcat/README.md diff --git a/tomcat/9.0.10/20.03-lts-sp1/Dockerfile b/tomcat/9.0.10/20.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..ae50fad --- /dev/null +++ b/tomcat/9.0.10/20.03-lts-sp1/Dockerfile @@ -0,0 +1,7 @@ +FROM openeuler/openeuler:20.03-lts-sp1 +MAINTAINER gaohechao +RUN yum update -y && yum install -y tomcat && yum clean all; +RUN sed -i s/::1/0.0.0.0/g /usr/share/tomcat/conf/server.xml +RUN sed -i '118a\ secretRequired=""' /usr/share/tomcat/conf/server.xml +EXPOSE 8080 +CMD [ "/usr/libexec/tomcat/server", "start" ] diff --git a/tomcat/README.md b/tomcat/README.md new file mode 100644 index 0000000..03a4e07 --- /dev/null +++ b/tomcat/README.md @@ -0,0 +1,30 @@ +# Tomcat + +# Quick reference + +- The official Nginx docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/tomcat:$VERSION" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +2. Run: +```shell +docker run -d openeuler/tomcat:9.0.10-20.03-lts-sp1 +``` + +# Supported tags and respective Dockerfile links + +- 9.0.10-20.03-lts-sp1: tomcat v9.0.10, openEuler 20.03 LTS SP1 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. -- Gitee From 0ed0941884076fa54d9eda36ea9ae4eb757a9155 Mon Sep 17 00:00:00 2001 From: gaohechao <1159963696@qq.com> Date: Fri, 15 Oct 2021 09:44:30 +0800 Subject: [PATCH 2/2] Correct character error --- tomcat/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat/README.md b/tomcat/README.md index 03a4e07..9c6c91e 100644 --- a/tomcat/README.md +++ b/tomcat/README.md @@ -2,7 +2,7 @@ # Quick reference -- The official Nginx docker image. +- The official Tomcat docker image. - Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) -- Gitee