[PATCH] Add default configuration in case volume remains unused

Wald Commits scm-commit at wald.intevation.org
Wed Nov 15 11:54:20 CET 2023


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1700045640 -3600
#      Wed Nov 15 11:54:00 2023 +0100
# Branch 3.2.x
# Node ID e21697ba97f82d01b03d67d977c0854b26db9bd6
# Parent  74bbf3c5d1ec62c7ff1ab1373d5b6cf87a3e4504
Add default configuration in case volume remains unused

diff -r 74bbf3c5d1ec -r e21697ba97f8 docker/Dockerfile.gwt-client
--- a/docker/Dockerfile.gwt-client	Thu Nov 02 17:59:28 2023 +0100
+++ b/docker/Dockerfile.gwt-client	Wed Nov 15 11:54:00 2023 +0100
@@ -59,8 +59,10 @@
 RUN sed -i '/Connector port="8080"/a \URIEncoding="UTF-8"' /etc/tomcat/server.xml
 RUN sed -i 's/\(Connector port="8009"\)/\1 URIEncoding="UTF-8"/' \
         /etc/tomcat/server.xml
-RUN ln -sf /opt/d4e/river/gwt-client/config/context.xml /etc/tomcat
-VOLUME /opt/d4e/river/gwt-client/config
+ENV CONFIG_DIR /opt/d4e/river/gwt-client/config
+ADD gwt-client/config $CONFIG_DIR
+RUN ln -sf $CONFIG_DIR/context.xml /etc/tomcat
+VOLUME $CONFIG_DIR
 
 # Deploy
 COPY --from=build /opt/d4e/river/gwt-client/target/gwt-client-*.war \


More information about the Dive4Elements-commits mailing list