From dd9444f286adb565485f12b80c7bbff1b1c6a677 Mon Sep 17 00:00:00 2001 From: Murali-P Date: Wed, 9 Aug 2017 18:13:47 +0530 Subject: Build docker image Change-Id: Ia47047ffed69e35622ef94b58b5f84956e557a2d JIRA:VNFSDK-53 Signed-off-by: Murali-P --- vnfmarket-be/deployment/pom.xml | 134 ++++++++-------------------------------- 1 file changed, 27 insertions(+), 107 deletions(-) (limited to 'vnfmarket-be/deployment/pom.xml') diff --git a/vnfmarket-be/deployment/pom.xml b/vnfmarket-be/deployment/pom.xml index d09f92f0..ad945b90 100644 --- a/vnfmarket-be/deployment/pom.xml +++ b/vnfmarket-be/deployment/pom.xml @@ -1,118 +1,38 @@ - + Copyright 2017 Huawei Technologies Co., Ltd. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> + 4.0.0 - + + org.onap.vnfsdk.refrepo - vnf-sdk-marketplace-core-parent + vnfmarket 1.0.0-SNAPSHOT - vnf-sdk-marketplace-deployment - vnf-sdk-marketplace/deployment + vnfmarket-deployment + vnfmarket/deployment pom - - UTF-8 - - - - - - - org.codehaus.gmaven - groovy-maven-plugin - 2.0 - - - - - - org.codehaus.gmaven - gmaven-plugin - 1.5 - - - VnfSdkMarketplace package - package - - execute - - - - System.out.println("******** Going to make release zip ********") - - deployFolder = "${project.build.directory}/deployoutput" - deployUnzip = "${project.build.directory}/deployunzip" - outfileName = "VnfSdkMarketplace-${project.version}.zip" - - ant.delete(dir: "${deployFolder}") - ant.mkdir(dir: "${deployFolder}") - - ant.delete(dir: "${deployUnzip}") - ant.mkdir(dir: "${deployUnzip}") - - ant.mkdir(dir: "${deployUnzip}/webapps/ROOT") - ant.mkdir(dir: "${deployUnzip}/webapps/openoui") - - ant.copy(todir: "${deployUnzip}") { - fileset(dir: "${basedir}/src/main/release"){ - exclude(name: "**/.gitignore") - } - } - - ant.copy(todir: "${deployUnzip}/webapps/ROOT") { - fileset(dir: "${project.build.directory}/../../vnf-sdk-marketplace/target/ROOT") - } - - ant.copy(todir: "${deployUnzip}/webapps/openoui") { - fileset(dir: "${project.build.directory}/../../../vnfmarket/src/main/webapp") - } + + zip + docker + - ant.zip(destfile: "${deployFolder}/${outfileName}") { - fileset(dir: "${deployUnzip}") - } - System.out.println("******** completed. ************") - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/deployoutput/VnfSdkMarketplace-${project.version}.zip - zip - - - - - - - - -- cgit 1.2.3-korg