From 24d66aa2446a5d28ebfd8e6f626e04bf4164415b Mon Sep 17 00:00:00 2001 From: fnecas Date: Wed, 10 Jul 2024 16:16:02 +0200 Subject: [PATCH 1/3] feat: add tomcat server xml to hide version --- Dockerfile | 3 +- docker/server.xml | 176 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 docker/server.xml diff --git a/Dockerfile b/Dockerfile index 120516373..86431144f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest as extractwar RUN apk --no-cache add unzip WORKDIR /tmp -COPY docker/MapStore-*.war mapstore.war +COPY docker/mapstore.war mapstore.war RUN unzip mapstore.war -d mapstore @@ -22,6 +22,7 @@ RUN if [ "$TOMCAT_EXTRAS" = false ]; then \ # Add application from first stage COPY --from=extractwar /tmp/mapstore "${CATALINA_BASE}/webapps/mapstore" COPY georchestra-docker-scripts/ / +COPY docker/server.xml "${CATALINA_BASE}/conf/" # Geostore externalization template. Disabled by default diff --git a/docker/server.xml b/docker/server.xml new file mode 100644 index 000000000..f8e248d5f --- /dev/null +++ b/docker/server.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 560f01c7ec050b901c99dc5377de5b3afb6d4425 Mon Sep 17 00:00:00 2001 From: f-necas <39771412+f-necas@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:42:25 +0200 Subject: [PATCH 2/3] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 86431144f..4891ae86b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest as extractwar RUN apk --no-cache add unzip WORKDIR /tmp -COPY docker/mapstore.war mapstore.war +COPY docker/MapStore-*.war mapstore.war RUN unzip mapstore.war -d mapstore From 5e805a1d9c395e9e6ddb5229126468672347e1e4 Mon Sep 17 00:00:00 2001 From: f-necas <39771412+f-necas@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:56:45 +0200 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4891ae86b..7db7ddf4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN if [ "$TOMCAT_EXTRAS" = false ]; then \ # Add application from first stage COPY --from=extractwar /tmp/mapstore "${CATALINA_BASE}/webapps/mapstore" COPY georchestra-docker-scripts/ / +# SHould be override in 2024.xx when a server.xml on 8080 will be available COPY docker/server.xml "${CATALINA_BASE}/conf/"