aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2022-09-01 18:43:32 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2022-09-01 18:43:32 +0100
commit94e79d210d6321d3ff5d29806b8281e07b098da7 (patch)
tree7d82d056749b0f2c001cdba25a496eebeeb943bb
parent2bbd756d3fcc9a1856b14cc2b33ba3201305a884 (diff)
Allow setting external dockerfile for policy-gui
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 <daniel.hanrahan@est.tech> Change-Id: Iff458271c45ff634504f44ea05f2ec7dfdf15f9e
-rw-r--r--packages/policy-gui-docker/pom.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/policy-gui-docker/pom.xml b/packages/policy-gui-docker/pom.xml
index 9d2a682..1011280 100644
--- a/packages/policy-gui-docker/pom.xml
+++ b/packages/policy-gui-docker/pom.xml
@@ -43,6 +43,7 @@
<docker.skip.push>false</docker.skip.push>
<docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
<docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
+ <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
<maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
</properties>
@@ -106,6 +107,7 @@
<build>
<cleanup>try</cleanup>
<dockerFile>${dockerFile}</dockerFile>
+ <contextDir>${docker.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>