From: danielhanrahan Date: Tue, 30 Aug 2022 06:31:13 +0000 (+0100) Subject: Allow setting external dockerfile for policy-api X-Git-Tag: 2.7.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F130517%2F1;p=policy%2Fapi.git 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 --- 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}