[PATCH 1 of 2] Download dependencies before adding sources to leverage build cache

Wald Commits scm-commit at wald.intevation.org
Wed Apr 26 16:28:39 CEST 2023


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1682517885 -7200
#      Wed Apr 26 16:04:45 2023 +0200
# Branch 3.2.x
# Node ID c670bf2ec4b00f37c58a70ccb9fdb970b32327eb
# Parent  7b7a58a9386422b175e37141b8b4e8dc5f3a7a3c
Download dependencies before adding sources to leverage build cache

diff -r 7b7a58a93864 -r c670bf2ec4b0 docker/Dockerfile.artifacts
--- a/docker/Dockerfile.artifacts	Fri Mar 31 13:15:31 2023 +0200
+++ b/docker/Dockerfile.artifacts	Wed Apr 26 16:04:45 2023 +0200
@@ -30,12 +30,17 @@
 RUN mvn -q -DskipTests -f framework/pom.xml install
 RUN mvn -q -DskipTests -f http-client/pom.xml install
 
-ADD . river
-
 # If ORACLE=true, the oracle profile in the POM is activated
 ARG ORACLE
+ADD ./backend river/backend
+ADD checkstyle.xml river/
 RUN mvn -q -DskipTests -f river/backend/pom.xml install
 
+# Download dependencies before adding sources to leverage build cache
+ADD artifacts/pom.xml river/artifacts/
+RUN mvn -q -f river/artifacts/pom.xml dependency:go-offline
+ADD ./artifacts river/artifacts
+
 WORKDIR river/artifacts
 
 # Install WSPLGEN


More information about the Dive4Elements-commits mailing list