[PATCH 2 of 2] Leverage build cache for downloading dependencies
Wald Commits
scm-commit at wald.intevation.org
Fri Mar 31 13:15:51 CEST 2023
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1680261331 -7200
# Fri Mar 31 13:15:31 2023 +0200
# Branch 3.2.x
# Node ID 7b7a58a9386422b175e37141b8b4e8dc5f3a7a3c
# Parent a517ed28f133f88c649055221b9bca1b079412aa
Leverage build cache for downloading dependencies
diff -r a517ed28f133 -r 7b7a58a93864 docker/Dockerfile.gwt-client
--- a/docker/Dockerfile.gwt-client Fri Mar 31 12:26:50 2023 +0200
+++ b/docker/Dockerfile.gwt-client Fri Mar 31 13:15:31 2023 +0200
@@ -29,6 +29,10 @@
-DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \
-Dpackaging=jar
+# Download dependencies before adding sources to leverage build cache
+ADD gwt-client/pom.xml river/gwt-client/
+RUN mvn -q -f river/gwt-client/pom.xml dependency:go-offline
+
ADD checkstyle.xml river/
ADD gwt-client river/gwt-client/
@@ -36,6 +40,7 @@
--exclude=OpenLayers-2.11/doc --exclude=OpenLayers-2.11/tests \
--exclude=OpenLayers-2.11/examples -xf OpenLayers-2.11.tar.gz
RUN rm OpenLayers-2.11.tar.gz
+
RUN mvn -q -f river/gwt-client/pom.xml package && \
mv river/gwt-client/target/gwt-client-*.war \
/usr/share/tomcat/webapps/d4e-river.war
More information about the Dive4Elements-commits
mailing list