Mercurial > dive4elements > river
view docker/Dockerfile.artifacts @ 9715:278d285a16bf 3.2.x
Ensure needed packages are installed
They might or might not be installed in the base image already.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 22 Mar 2021 14:45:36 +0100 |
parents | 537fe44f2792 |
children | c3afc0274bba |
line wrap: on
line source
# Docker file for D4E River artifact server FROM centos:7 MAINTAINER tom@intevation.de # Necessary to run further yum-installs inside Docker container, # if not already part of the base image: RUN yum -y install yum-plugin-ovl # 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