From 2e170663ac66bd169ffa874a22c1256ba1607a86 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Fri, 2 Sep 2022 09:35:48 +0100 Subject: Allow setting external dockerfile for simulator 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: I25a192d01583f1085055db08477e9be884512091 --- models-sim/packages/models-simulator-docker/pom.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'models-sim/packages/models-simulator-docker') diff --git a/models-sim/packages/models-simulator-docker/pom.xml b/models-sim/packages/models-simulator-docker/pom.xml index 15daf003f..e98517b13 100644 --- a/models-sim/packages/models-simulator-docker/pom.xml +++ b/models-sim/packages/models-simulator-docker/pom.xml @@ -44,6 +44,7 @@ false nexus3.onap.org:10001 nexus3.onap.org:10003 + ${project.basedir}/src/main/docker yyyyMMdd'T'HHmm true @@ -109,6 +110,7 @@ try ${dockerFile} + ${docker.contextDir} ${project.version} ${project.version}-${maven.build.timestamp} @@ -180,7 +182,7 @@ org.onap.policy.models.sim models-simulator-tarball - ${project.version} + ${project.version} tarball tar.gz -- cgit 1.2.3-korg