changeset 9764:b5d4cb088737 3.2.x

Add named volume for DEM data
author Tom Gottfried <tom@intevation.de>
date Thu, 12 Jan 2023 13:11:24 +0100
parents ce7c67445cbb
children 7a51e6321a4e
files docker/Dockerfile.artifacts docker/docker-compose.yml
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/docker/Dockerfile.artifacts	Fri Nov 11 18:12:26 2022 +0100
+++ b/docker/Dockerfile.artifacts	Thu Jan 12 13:11:24 2023 +0100
@@ -17,6 +17,9 @@
 RUN curl -s "https://wald.intevation.org/frs/download.php/2282/$DATA_ARCH" | \
     tar -C $DEM_DIR --strip-components=1 --wildcards -xz 'demodaten/dem*.grd'
 
+# Volume for DEM data
+VOLUME $DEM_DIR
+
 
 WORKDIR /opt/d4e/src
 ENV REPO_URL https://scm.wald.intevation.org/hg/dive4elements/
--- a/docker/docker-compose.yml	Fri Nov 11 18:12:26 2022 +0100
+++ b/docker/docker-compose.yml	Thu Jan 12 13:11:24 2023 +0100
@@ -21,6 +21,7 @@
     volumes:
       - ../artifacts/doc/conf:/opt/d4e/bin/conf
       - artifacts-data:/opt/d4e/bin/artifacts-data
+      - dgm-data:/opt/d4e-river/dgm
     # Uncomment to enable remote debugging from anywhere (caution: security risk!)
     # environment:
     #   - JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8787
@@ -74,4 +75,5 @@
     name: d4e_river
 volumes:
   artifacts-data:
+  dgm-data:
   wiki-data:

http://dive4elements.wald.intevation.org