diff --git a/dockerfiles/Dockerfile.dspace b/dockerfiles/Dockerfile.dspace index fe22c44d14d6248052dc4bf9402e6fe487bec561..6b8178cde75b238197a7e46a05b8a263430594b2 100644 --- a/dockerfiles/Dockerfile.dspace +++ b/dockerfiles/Dockerfile.dspace @@ -92,18 +92,14 @@ COPY commul-customization/tomcat-server.xml /opt/tomcat8/conf/server.xml # # Our clarin-dspace tag to checkout ENV DSPACE_TAG="commul-2020.01.0-rc2_dspace-2020.02.1" - -# pre-fetch maven dependencies +# clone specific version tag RUN git clone --depth 1 --branch "$DSPACE_TAG" --recursive https://github.com/commul/clarin-dspace.git /opt/repository/sources/dspace WORKDIR /opt/repository/sources/dspace +# pre-fetch maven dependencies RUN mvn -B -T 1C \ --quiet \ --fail-never \ dependency:copy-dependencies dependency:resolve-plugins dependency:go-offline -# -# this checks if there was a new commit since the last build -ADD https://api.github.com/repos/commul/clarin-dspace/git/refs/heads/commul-custom /tmp/version.json -RUN git pull RUN mvn -B -T 1C clean compile WORKDIR /opt/repository/sources/dspace/utilities/project_helpers