4.0.0
org.onap.so.adapters.so-cnf-adapter
so-cnf-adapter
1.8.0-SNAPSHOT
org.onap.so.adapters.so-cnf-adapter.packages
1.8.0-SNAPSHOT
pom
docker
SO CNF Adapter Docker Packaging
${project.version}
false
false
false
nexus3.onap.org:10001
nexus3.onap.org:10003
onap/so
deploy
${project.artifactId}-${project.version}
org.codehaus.groovy.maven
gmaven-plugin
1.0
validate
execute
println 'Project version: ' + project.properties['cnf-adapter-project-version'];
def versionArray;
if (project.properties['cnf-adapter-project-version'] != null) {
versionArray = project.properties['cnf-adapter-project-version'].split('-');
}
if (project.properties['cnf-adapter-project-version'].endsWith("-SNAPSHOT")) {
project.properties['project.docker.latesttag.version'] = versionArray[0] + "-SNAPSHOT-latest";
} else {
project.properties['project.docker.latesttag.version'] = versionArray[0] + "-STAGING-latest";
}
println 'New tag for docker: ' + project.properties['project.docker.latesttag.version'];
io.fabric8
docker-maven-plugin
true
1.23
${docker.pull.registry}
${docker.push.registry}
${docker.image.prefix}/base-image:1.0
try
docker-files/Dockerfile.so-base-image
so-cnf-adapter
try
docker-files/Dockerfile.so-app
${project.version}
${project.version}-${maven.build.timestamp}
${project.docker.latesttag.version}
org.onap.so.adapters.so-cnf-adapter:so-cnf-adapter-application
app.jar
clean-images
pre-clean
remove
true
generate-images
generate-sources
build
push-images
${docker.push.phase}
build
push
so-cnf-adapter
org.apache.maven.plugins
maven-deploy-plugin
true
org.onap.so.adapters.so-cnf-adapter
so-cnf-adapter-application
${project.version}