From 84cd8c43fa95f08ce98d498a145b9fcb2552f3ce Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Fri, 21 Sep 2018 11:08:46 -0400 Subject: Make neng produce Dockerimage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iea7694a0f39d2614ec880d6c6fafe305baa2bea7 Issue-ID: CCSDK-593 Signed-off-by: Alexis de Talhouët --- ms/neng/pom.xml | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'ms/neng') diff --git a/ms/neng/pom.xml b/ms/neng/pom.xml index 8f6c7b15..81c1e668 100644 --- a/ms/neng/pom.xml +++ b/ms/neng/pom.xml @@ -1,5 +1,5 @@ - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.onap.ccsdk.apps @@ -56,11 +56,9 @@ 0.2.4 ${https_proxy} deploy - deploy true ${project.version} onap/ccsdk-apps-ms-neng - @@ -129,7 +127,7 @@ copy-resources - ${docker.build.phase} + validate ${basedir}/target/docker-stage @@ -149,7 +147,7 @@ copy-resources - ${docker.build.phase} + validate ${basedir}/target/docker-stage @@ -168,7 +166,7 @@ copy-resources - ${docker.build.phase} + validate ${basedir}/target/docker-stage/opt/etc/config @@ -184,8 +182,8 @@ - - + + io.fabric8 docker-maven-plugin @@ -208,9 +206,16 @@ true + + generate-images + package + + build + + push-images - ${docker.build.phase} + ${docker.push.phase} build push @@ -229,13 +234,13 @@ ${userId} - - + + org.onap.ccsdk.parent odlparent-lite 1.1.0-SNAPSHOT - + @@ -387,15 +392,14 @@ println project.properties['ccsdk.project.version']; def versionArray; - if (project.properties['ccsdk.project.version'] != null ) { + 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"; + 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"; + project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; } println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; @@ -516,7 +520,7 @@ exec-maven-plugin org.codehaus.mojo - + org.springframework.boot spring-boot-maven-plugin @@ -630,6 +634,4 @@ - - - + \ No newline at end of file -- cgit 1.2.3-korg