diff docker/Dockerfile.artifacts @ 9684:537fe44f2792 3.2.x

Add basic Docker setup for development
author Tom Gottfried <tom@intevation.de>
date Thu, 30 Jul 2020 19:00:44 +0200
parents
children 278d285a16bf
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/Dockerfile.artifacts	Thu Jul 30 19:00:44 2020 +0200
@@ -0,0 +1,32 @@
+# Docker file for D4E River artifact server
+
+FROM centos:7
+MAINTAINER tom@intevation.de
+
+# Install prerequisites
+RUN yum -y install maven mercurial
+
+WORKDIR /opt/d4e
+ENV REPO_URL https://scm.wald.intevation.org/hg/dive4elements/
+ENV BRANCH 3.2.x
+RUN hg clone -b $BRANCH $REPO_URL/framework
+RUN hg clone -b $BRANCH $REPO_URL/http-client
+
+RUN mvn -q -f framework/pom.xml install
+RUN mvn -q -f http-client/pom.xml install
+
+ADD . river
+
+RUN mvn -q -f river/backend/pom.xml install
+
+WORKDIR river/artifacts
+RUN ../../framework/artifact-database/bin/createArtifacts.sh && \
+    mv artifactsdb doc/
+RUN ./bin/createDatacage.sh && \
+    mv datacagedb doc/
+
+EXPOSE 8181
+
+CMD mvn -Dexec.mainClass=org.dive4elements.artifactdatabase.App \
+        -Dartifact.database.dir="/opt/d4e/river/artifacts/doc/conf" \
+        compile exec:java

http://dive4elements.wald.intevation.org