4.0.0 org.onap.ccsdk.distribution distribution-root 0.3.2-SNAPSHOT org.onap.ccsdk.distribution distribution-dgbuilder-docker 0.3.2-SNAPSHOT pom ccsdk-distribution :: dgbuilder-docker Creates docker container for dgbuilder ONAP onap/ccsdk-dgbuilder-image ${project.version} org.codehaus.groovy.maven gmaven-plugin validate execute println project.properties['ccsdk.project.version']; def versionArray; if ( project.properties['ccsdk.project.version'] != null ) { versionArray = project.properties['ccsdk.project.version'].split('\\.'); } if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) { project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; } else { project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; } println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; maven-resources-plugin 2.6 copy-dockerfile copy-resources validate ${basedir}/target/docker-stage src/main/docker Dockerfile true org.codehaus.mojo exec-maven-plugin 1.5.0 Make-stage-dir generate-sources exec /bin/mkdir -p ${basedir}/target/docker-stage/opt/onap/ccsdk Unzip dgbuilder generate-sources exec /usr/bin/unzip -d ${basedir}/target/docker-stage/opt/onap/ccsdk ../dgbuilder/target/*.zip Copy dgbuilder generate-sources exec /bin/cp -r ../dgbuilder ${basedir}/target/docker-stage/opt/onap/ccsdk dgbuilder createReleaseDir generate-sources exec /bin/bash ${basedir}/target/docker-stage/opt/onap/ccsdk/dgbuilder/createReleaseDir.sh 1702 dguser change_email_id@dgbuilder.com change shell permissions process-sources exec /usr/bin/find ${basedir}/target/docker-stage/opt/onap/ccsdk -name *.sh -exec chmod +x {} ; docker io.fabric8 docker-maven-plugin 0.16.5 false ${image.name} try ${basedir}/target/docker-stage ${basedir}/target/docker-stage/Dockerfile ${project.version} ${project.version}-STAGING-${maven.build.timestamp} ${project.docker.latesttag.version} generate-images package build push-images deploy build push