summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2022-09-02 14:20:40 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2022-09-02 14:20:40 +0100
commitef321be0c72eeffacb17fb940d153a141372e3d4 (patch)
treec9ab1f359efd60840245aaf2471f5d1577ea7391 /packages
parent6ce5813eadf6c273455fa6f3417da9359571d0d4 (diff)
Allow setting external dockerfile for drools-pdp
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: Ifc93fe3d748d21409f3532aec73430edea665ee3
Diffstat (limited to 'packages')
-rw-r--r--packages/docker/pom.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/docker/pom.xml b/packages/docker/pom.xml
index 79fd73a7..ba2793dc 100644
--- a/packages/docker/pom.xml
+++ b/packages/docker/pom.xml
@@ -43,6 +43,7 @@
<docker.skip.build>false</docker.skip.build>
<docker.skip.push>false</docker.skip.push>
<docker.skip.deployconfig>true</docker.skip.deployconfig>
+ <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
<maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
<docker.buildArg.BUILD_VERSION_DROOLS>${project.version}</docker.buildArg.BUILD_VERSION_DROOLS>
<docker.buildArg.MVN_SNAPSHOT_REPO_URL>${nexusproxy}/${snapshots.path}</docker.buildArg.MVN_SNAPSHOT_REPO_URL>
@@ -107,6 +108,7 @@
<build>
<cleanup>try</cleanup>
<dockerFile>${dockerFile}</dockerFile>
+ <contextDir>${docker.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>