comparison 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
comparison
equal deleted inserted replaced
9681:8e5a8430b89c 9684:537fe44f2792
1 # Docker file for D4E River artifact server
2
3 FROM centos:7
4 MAINTAINER tom@intevation.de
5
6 # Install prerequisites
7 RUN yum -y install maven mercurial
8
9 WORKDIR /opt/d4e
10 ENV REPO_URL https://scm.wald.intevation.org/hg/dive4elements/
11 ENV BRANCH 3.2.x
12 RUN hg clone -b $BRANCH $REPO_URL/framework
13 RUN hg clone -b $BRANCH $REPO_URL/http-client
14
15 RUN mvn -q -f framework/pom.xml install
16 RUN mvn -q -f http-client/pom.xml install
17
18 ADD . river
19
20 RUN mvn -q -f river/backend/pom.xml install
21
22 WORKDIR river/artifacts
23 RUN ../../framework/artifact-database/bin/createArtifacts.sh && \
24 mv artifactsdb doc/
25 RUN ./bin/createDatacage.sh && \
26 mv datacagedb doc/
27
28 EXPOSE 8181
29
30 CMD mvn -Dexec.mainClass=org.dive4elements.artifactdatabase.App \
31 -Dartifact.database.dir="/opt/d4e/river/artifacts/doc/conf" \
32 compile exec:java

http://dive4elements.wald.intevation.org