summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2022-09-01 15:17:18 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2022-09-01 15:17:18 +0100
commitff82245b200616cf30a6f6cd4d1e5305ae3d90ef (patch)
tree444273a83a64cecb5c260d0070966b995512f29e
parentc2363561c5578a003f3082d633b9e6d54e5671aa (diff)
Allow setting external dockerfile for db-migrator
Added maven properties to allow overriding dockerfile during build e.g. mvn clean install -Pdocker -Ddocker.dbm.dockerFile=/path/to/dockerfile Issue-ID: POLICY-4334 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: Idb282cd121f5bf4ec91764596a88fb28e3557256
-rw-r--r--policy-db-migrator/pom.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/policy-db-migrator/pom.xml b/policy-db-migrator/pom.xml
index c135ae27..b9c9ab4b 100644
--- a/policy-db-migrator/pom.xml
+++ b/policy-db-migrator/pom.xml
@@ -42,6 +42,8 @@
<docker.skip.push>false</docker.skip.push>
<maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
<docker.dbm.imagename>onap/policy-db-migrator</docker.dbm.imagename>
+ <docker.dbm.dockerFile>Dockerfile</docker.dbm.dockerFile>
+ <docker.dbm.contextDir>${project.basedir}/src/main/docker</docker.dbm.contextDir>
</properties>
<build>
@@ -81,7 +83,8 @@
<name>${docker.dbm.imagename}</name>
<build>
<cleanup>try</cleanup>
- <dockerFile>Dockerfile</dockerFile>
+ <dockerFile>${docker.dbm.dockerFile}</dockerFile>
+ <contextDir>${docker.dbm.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>