aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-clamp-docker
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 /packages/policy-clamp-docker
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 'packages/policy-clamp-docker')
-rw-r--r--packages/policy-clamp-docker/pom.xml25
1 files changed, 20 insertions, 5 deletions
diff --git a/packages/policy-clamp-docker/pom.xml b/packages/policy-clamp-docker/pom.xml
index cd9cb172b..54bf1b040 100644
--- a/packages/policy-clamp-docker/pom.xml
+++ b/packages/policy-clamp-docker/pom.xml
@@ -43,6 +43,16 @@
<docker.skip.push>false</docker.skip.push>
<docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
<docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
+ <docker.clamp-runtime-acm.dockerFile>AcmRuntime.Dockerfile</docker.clamp-runtime-acm.dockerFile>
+ <docker.clamp-runtime-acm.contextDir>${project.basedir}/src/main/docker</docker.clamp-runtime-acm.contextDir>
+ <docker.clamp-ac-pf-ppnt.dockerFile>PolicyParticipant.Dockerfile</docker.clamp-ac-pf-ppnt.dockerFile>
+ <docker.clamp-ac-pf-ppnt.contextDir>${project.basedir}/src/main/docker</docker.clamp-ac-pf-ppnt.contextDir>
+ <docker.clamp-ac-k8s-ppnt.dockerFile>KubernetesParticipant.Dockerfile</docker.clamp-ac-k8s-ppnt.dockerFile>
+ <docker.clamp-ac-k8s-ppnt.contextDir>${project.basedir}/src/main/docker</docker.clamp-ac-k8s-ppnt.contextDir>
+ <docker.clamp-ac-http-ppnt.dockerFile>HttpParticipant.Dockerfile</docker.clamp-ac-http-ppnt.dockerFile>
+ <docker.clamp-ac-http-ppnt.contextDir>${project.basedir}/src/main/docker</docker.clamp-ac-http-ppnt.contextDir>
+ <docker.clamp-acm-element-impl.dockerFile>ElementParticipant.Dockerfile</docker.clamp-acm-element-impl.dockerFile>
+ <docker.clamp-acm-element-impl.contextDir>${project.basedir}/src/main/docker</docker.clamp-acm-element-impl.contextDir>
<maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
</properties>
@@ -105,7 +115,8 @@
<name>onap/policy-clamp-runtime-acm</name>
<build>
<cleanup>try</cleanup>
- <dockerFile>AcmRuntime${dockerFileFlavor}.Dockerfile</dockerFile>
+ <dockerFile>${docker.clamp-runtime-acm.dockerFile}</dockerFile>
+ <contextDir>${docker.clamp-runtime-acm.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>
@@ -137,7 +148,8 @@
<alias>onap-policy-clamp-ac-pf-ppnt</alias>
<build>
<cleanup>try</cleanup>
- <dockerFile>PolicyParticipant${dockerFileFlavor}.Dockerfile</dockerFile>
+ <dockerFile>${docker.clamp-ac-pf-ppnt.dockerFile}</dockerFile>
+ <contextDir>${docker.clamp-ac-pf-ppnt.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>
@@ -169,7 +181,8 @@
<alias>onap-policy-clamp-ac-k8s-ppnt</alias>
<build>
<cleanup>try</cleanup>
- <dockerFile>KubernetesParticipant${dockerFileFlavor}.Dockerfile</dockerFile>
+ <dockerFile>${docker.clamp-ac-k8s-ppnt.dockerFile}</dockerFile>
+ <contextDir>${docker.clamp-ac-k8s-ppnt.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>
@@ -201,7 +214,8 @@
<alias>onap-policy-clamp-ac-http-ppnt</alias>
<build>
<cleanup>try</cleanup>
- <dockerFile>HttpParticipant${dockerFileFlavor}.Dockerfile</dockerFile>
+ <dockerFile>${docker.clamp-ac-http-ppnt.dockerFile}</dockerFile>
+ <contextDir>${docker.clamp-ac-http-ppnt.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>
@@ -233,7 +247,8 @@
<alias>onap-policy-clamp-acm-element-impl</alias>
<build>
<cleanup>try</cleanup>
- <dockerFile>ElementParticipant${dockerFileFlavor}.Dockerfile</dockerFile>
+ <dockerFile>${docker.clamp-acm-element-impl.dockerFile}</dockerFile>
+ <contextDir>${docker.clamp-acm-element-impl.contextDir}</contextDir>
<tags>
<tag>${project.version}</tag>
<tag>${project.version}-${maven.build.timestamp}</tag>