diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2022-09-01 15:17:18 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2022-09-01 15:17:18 +0100 |
commit | ff82245b200616cf30a6f6cd4d1e5305ae3d90ef (patch) | |
tree | 444273a83a64cecb5c260d0070966b995512f29e /policy-db-migrator | |
parent | c2363561c5578a003f3082d633b9e6d54e5671aa (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
Diffstat (limited to 'policy-db-migrator')
-rw-r--r-- | policy-db-migrator/pom.xml | 5 |
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> |