From bd96c8fb2d9160c5166e7d3035436d6d78da9797 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 1 Sep 2022 15:03:20 +0100 Subject: Allow setting external dockerfile for distribution If building with an external dockerfile, e.g. using mvn clean install -Pdocker -DdockerFile=/path/to/dockerfile docker will look for project files in the same directory as the new dockerfile. A new property is added for setting the context path, to allow using existing project files in src/main/docker. Issue-ID: POLICY-4334 Signed-off-by: danielhanrahan Change-Id: Ic6851e77e4b5bb8d8dc51bc4824560270806987b --- packages/policy-distribution-docker/pom.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/policy-distribution-docker') diff --git a/packages/policy-distribution-docker/pom.xml b/packages/policy-distribution-docker/pom.xml index 79ce0361..2ee2711f 100644 --- a/packages/policy-distribution-docker/pom.xml +++ b/packages/policy-distribution-docker/pom.xml @@ -44,6 +44,7 @@ false false false + ${project.basedir}/src/main/docker yyyyMMdd'T'HHmm @@ -107,6 +108,7 @@ try ${dockerFile} + ${docker.contextDir} ${project.version} ${project.version}-${maven.build.timestamp} -- cgit 1.2.3-korg