From 1d9a4a6444f1a192ae69aa1f9c5df908c34ad164 Mon Sep 17 00:00:00 2001 From: rokenny Date: Tue, 9 Apr 2019 20:34:44 +0000 Subject: Added VNFM Simulator project Change-Id: I9b84164dc189128eed8d09b6ce69fc5d5fd78348 Issue-ID: SO-1618 Signed-off-by: rokenny --- vnfm-simulator/packages/docker/pom.xml | 168 +++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 vnfm-simulator/packages/docker/pom.xml (limited to 'vnfm-simulator/packages/docker/pom.xml') diff --git a/vnfm-simulator/packages/docker/pom.xml b/vnfm-simulator/packages/docker/pom.xml new file mode 100644 index 0000000000..5d67d57521 --- /dev/null +++ b/vnfm-simulator/packages/docker/pom.xml @@ -0,0 +1,168 @@ + + + + + 4.0.0 + + + org.onap.svnfm + packages + 1.0.0-SNAPSHOT + + + pom + docker + Docker Images + Docker Images + + + 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['svnfm.project.version']; + def versionArray; + if + ( + project.properties['svnfm.project.version'] != null ) { + versionArray = + project.properties['svnfm.project.version'].split('-'); + } + + if ( + project.properties['svnfm.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 + 0.19.1 + + + true + 1.23 + ${docker.pull.registry} + ${docker.push.registry} + + + + onap/svnfm/simulator + + try + Dockerfile + + ${project.version} + ${project.version}-${maven.build.timestamp} + ${project.docker.latesttag.version} + + + + + + + org.onap.svnfm:simulator + + app.jar + + + + + + + + + + + + clean-images + pre-clean + + remove + + + true + + + + + generate-images + generate-sources + + build + + + + + push-images + deploy + + build + push + + + onap/svnfm/simulator + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8 + + true + + + + + -- cgit 1.2.3-korg