diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2022-08-30 08:27:13 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2022-09-01 13:56:24 +0100 |
commit | e2bb8c87c0702cc0311cb99f57382417aa2074d6 (patch) | |
tree | f1f8ead17848753f3b5fd78a1bd35894c9c32d34 /packages/policy-pap-docker/pom.xml | |
parent | fb22a6bf57d0fb68aff22c49b8dc4309b76219c4 (diff) |
Allow setting external dockerfile for policy-pap
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: Ica6984b0460e5814df56ab6679003e98b983d397
Diffstat (limited to 'packages/policy-pap-docker/pom.xml')
-rw-r--r-- | packages/policy-pap-docker/pom.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/policy-pap-docker/pom.xml b/packages/policy-pap-docker/pom.xml index 4a180cd8..3bf3f4c3 100644 --- a/packages/policy-pap-docker/pom.xml +++ b/packages/policy-pap-docker/pom.xml @@ -42,6 +42,7 @@ <docker.skip>false</docker.skip> <docker.skip.build>false</docker.skip.build> <docker.skip.push>false</docker.skip.push> + <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir> <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> </properties> @@ -105,6 +106,7 @@ <build> <cleanup>try</cleanup> <dockerFile>${dockerFile}</dockerFile> + <contextDir>${docker.contextDir}</contextDir> <tags> <tag>${project.version}</tag> <tag>${project.version}-${maven.build.timestamp}</tag> |