From 07ba043caa37f61258722e58ffb098470d74b3d6 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Tue, 30 Aug 2022 07:31:13 +0100 Subject: Allow setting external dockerfile for policy-api 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: Iebfa6f3bcfeccf70675231acd4b6d7f629f56223 --- packages/policy-api-docker/pom.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages') diff --git a/packages/policy-api-docker/pom.xml b/packages/policy-api-docker/pom.xml index d9c47bb9..1f7714d0 100644 --- a/packages/policy-api-docker/pom.xml +++ b/packages/policy-api-docker/pom.xml @@ -43,6 +43,7 @@ false false false + ${project.basedir}/src/main/docker yyyyMMdd'T'HHmm @@ -106,6 +107,7 @@ try ${dockerFile} + ${docker.contextDir} ${project.version} ${project.version}-${maven.build.timestamp} -- cgit 1.2.3-korg