4.0.0
org.onap.policy.clamp
clamp-packages
6.2.4-SNAPSHOT
pom
policy-clamp-docker
${project.artifactId}
Policy clamp docker image
UTF-8
UTF-8
${project.version}
false
false
false
nexus3.onap.org:10001
nexus3.onap.org:10003
yyyyMMdd'T'HHmm
${project.artifactId}-${project.version}
org.codehaus.groovy.maven
gmaven-plugin
1.0
validate
execute
println 'Project version: ' + project.properties['dist.project.version']
if (project.properties['dist.project.version'] != null) {
def versionArray = project.properties['dist.project.version'].split('-')
def minMaxVersionArray = versionArray[0].tokenize('.')
if (project.properties['dist.project.version'].endsWith("-SNAPSHOT")) {
project.properties['project.docker.latest.minmax.tag.version'] =
minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-SNAPSHOT-latest"
} else {
project.properties['project.docker.latest.minmax.tag.version'] =
minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-STAGING-latest"
}
println 'New tag for docker: ' + project.properties['project.docker.latest.minmax.tag.version']
}
io.fabric8
docker-maven-plugin
true
1.23
${docker.pull.registry}
${docker.push.registry}
onap/policy-clamp-runtime-acm
try
AcmRuntimeDockerfile
${project.version}
${project.version}-${maven.build.timestamp}
${project.docker.latest.minmax.tag.version}
org.onap.policy.clamp:policy-clamp-tarball
/lib
policy-clamp-runtime-acm.tar.gz
org.onap.policy.clamp:policy-clamp-runtime-acm
app.jar
onap/policy-clamp-ac-pf-ppnt
onap-policy-clamp-ac-pf-ppnt
try
PolicyParticipantDockerfile
${project.version}
${project.version}-${maven.build.timestamp}
${project.docker.latest.minmax.tag.version}
org.onap.policy.clamp:policy-clamp-tarball
/lib
policy-participant.tar.gz
org.onap.policy.clamp.participant:policy-clamp-participant-impl-policy
app.jar
onap/policy-clamp-ac-k8s-ppnt
onap-policy-clamp-ac-k8s-ppnt
try
KubernetesParticipantDockerfile
${project.version}
${project.version}-${maven.build.timestamp}
${project.docker.latest.minmax.tag.version}
org.onap.policy.clamp:policy-clamp-tarball
/lib
kubernetes-participant.tar.gz
org.onap.policy.clamp.participant:policy-clamp-participant-impl-kubernetes
app.jar
onap/policy-clamp-ac-http-ppnt
onap-policy-clamp-ac-http-ppnt
try
HttpParticipantDockerfile
${project.version}
${project.version}-${maven.build.timestamp}
${project.docker.latest.minmax.tag.version}
org.onap.policy.clamp:policy-clamp-tarball
/lib
http-participant.tar.gz
org.onap.policy.clamp.participant:policy-clamp-participant-impl-http
app.jar
clean-images
pre-clean
remove
true
generate-images
generate-sources
build
push-images
deploy
build
push
org.apache.maven.plugins
maven-deploy-plugin
true
org.onap.policy.clamp
policy-clamp-tarball
${project.version}
tarball
tar.gz
org.onap.policy.clamp.participant
policy-clamp-participant-impl-policy
${project.version}
org.onap.policy.clamp.participant
policy-clamp-participant-impl-kubernetes
${project.version}
org.onap.policy.clamp.participant
policy-clamp-participant-impl-http
${project.version}