tom@9684: # Docker file for D4E River artifact server tom@9684: tom@9684: FROM centos:7 tom@9684: MAINTAINER tom@intevation.de tom@9684: tom@9684: # Install prerequisites tom@9684: RUN yum -y install maven mercurial tom@9684: tom@9684: WORKDIR /opt/d4e tom@9684: ENV REPO_URL https://scm.wald.intevation.org/hg/dive4elements/ tom@9684: ENV BRANCH 3.2.x tom@9684: RUN hg clone -b $BRANCH $REPO_URL/framework tom@9684: RUN hg clone -b $BRANCH $REPO_URL/http-client tom@9684: tom@9684: RUN mvn -q -f framework/pom.xml install tom@9684: RUN mvn -q -f http-client/pom.xml install tom@9684: tom@9684: ADD . river tom@9684: tom@9684: RUN mvn -q -f river/backend/pom.xml install tom@9684: tom@9684: WORKDIR river/artifacts tom@9684: RUN ../../framework/artifact-database/bin/createArtifacts.sh && \ tom@9684: mv artifactsdb doc/ tom@9684: RUN ./bin/createDatacage.sh && \ tom@9684: mv datacagedb doc/ tom@9684: tom@9684: EXPOSE 8181 tom@9684: tom@9684: CMD mvn -Dexec.mainClass=org.dive4elements.artifactdatabase.App \ tom@9684: -Dartifact.database.dir="/opt/d4e/river/artifacts/doc/conf" \ tom@9684: compile exec:java