From ff82245b200616cf30a6f6cd4d1e5305ae3d90ef Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 1 Sep 2022 15:17:18 +0100 Subject: 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 Change-Id: Idb282cd121f5bf4ec91764596a88fb28e3557256 --- policy-db-migrator/pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'policy-db-migrator') 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 @@ false yyyyMMdd'T'HHmm onap/policy-db-migrator + Dockerfile + ${project.basedir}/src/main/docker @@ -81,7 +83,8 @@ ${docker.dbm.imagename} try - Dockerfile + ${docker.dbm.dockerFile} + ${docker.dbm.contextDir} ${project.version} ${project.version}-${maven.build.timestamp} -- cgit 1.2.3-korg