aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/pom.xml
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2022-09-02 13:07:33 +0100
committerDaniel Hanrahan <daniel.hanrahan@est.tech>2022-09-02 12:43:09 +0000
commit36af1675013b538d43ec5e9bbf6caa24a1a70eec (patch)
treead025dbd7a33fdc9732dd8f4a669033f461d0f3c /runtime/pom.xml
parenta6896ee8eaa79588ac45638ed236ba4d37ec1c42 (diff)
Allow setting external dockerfiles for clamp
Added maven properties to allow overriding each dockerfile during build, for example: mvn clean install -Pdocker \ -Ddocker.clamp-runtime.dockerFile=/path/to/Dockerfile Issue-ID: POLICY-4334 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I648b83b53cb65a9b6fc762af715ec1b959792992
Diffstat (limited to 'runtime/pom.xml')
-rw-r--r--runtime/pom.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/pom.xml b/runtime/pom.xml
index 0487148f3..0d8afb135 100644
--- a/runtime/pom.xml
+++ b/runtime/pom.xml
@@ -84,6 +84,8 @@
<docker.skip.build>true</docker.skip.build>
<docker.skip.push>true</docker.skip.push>
<docker.skip.tag>true</docker.skip.tag>
+ <docker.clamp-runtime.dockerFile>backend/Dockerfile</docker.clamp-runtime.dockerFile>
+ <docker.clamp-runtime.contextDir>${project.basedir}/src/main/docker</docker.clamp-runtime.contextDir>
<skip.staging.artifacts>false</skip.staging.artifacts>
<python.http.proxy.param />
@@ -141,7 +143,6 @@
<docker.skip.tag>false</docker.skip.tag>
<docker.skip.push>false</docker.skip.push>
<docker.skip>false</docker.skip>
- <dockerFile>backend/Dockerfile</dockerFile>
</properties>
</profile>
<profile>
@@ -152,7 +153,7 @@
<docker.skip.tag>false</docker.skip.tag>
<docker.skip.push>false</docker.skip.push>
<docker.skip>false</docker.skip>
- <dockerFile>backend/suse.Dockerfile</dockerFile>
+ <docker.clamp-runtime.dockerFile>backend/suse.Dockerfile</docker.clamp-runtime.dockerFile>
</properties>
</profile>
</profiles>
@@ -769,9 +770,8 @@
<tag>${project.docker.latesttagtimestamp.version}</tag>
<tag>${project.docker.latesttag.version}</tag>
</tags>
- <!-- A relative path is looked up in ${project.basedir}/src/main/docker by
- default -->
- <dockerFile>${dockerFile}</dockerFile>
+ <dockerFile>${docker.clamp-runtime.dockerFile}</dockerFile>
+ <contextDir>${docker.clamp-runtime.contextDir}</contextDir>
<assembly>
<descriptor>backend/backend-files.xml</descriptor>
<name>onap-policy-clamp-backend</name>