From c84dc84031fb219ce17dbc58304d12f6d961925b Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Tue, 24 Apr 2018 09:06:57 -0400 Subject: Add missing components in sdnc docker container Add missing components (ansible-adapter, lcm) to SDNC docker container. Also, version.properties and some pom.xmls so that release build of 1.3.1 works properly. Change-Id: I1e3e0a0a5b3ed7c6b584cae6c26a4afe503cebcf Issue-ID: SDNC-287 Signed-off-by: Timoney, Dan (dt5972) Former-commit-id: db25748dd03f8d48378130059ebde0fc70b7e58a --- installation/sdnc/pom.xml | 108 ++++++++++++++++----- .../sdnc/src/main/scripts/installFeatures.sh | 17 ++++ 2 files changed, 101 insertions(+), 24 deletions(-) (limited to 'installation') diff --git a/installation/sdnc/pom.xml b/installation/sdnc/pom.xml index 2b4cb107..330ac8c4 100644 --- a/installation/sdnc/pom.xml +++ b/installation/sdnc/pom.xml @@ -14,17 +14,49 @@ installation-sdnc 1.3.1-SNAPSHOT - sdnc-oam :: installation :: ${project.artifactId} + sdnc-oam :: installation :: ${project.artifactId} Creates SDN Controller Docker container onap/sdnc-image ${project.version} - 1.3.1-SNAPSHOT + 1.3.1-SNAPSHOT ${https_proxy} - yyyyMMdd'T'HHmmss'Z' + yyyyMMdd'T'HHmmss'Z' + + + org.onap.sdnc.northbound + generic-resource-api-installer + ${sdnc.northbound.version} + zip + + + org.onap.sdnc.northbound + vnfapi-installer + ${sdnc.northbound.version} + zip + + + org.onap.sdnc.northbound + vnftools-installer + ${sdnc.northbound.version} + zip + + + org.onap.ccsdk.sli.adaptors + ansible-adapter-installer + ${ccsdk.sli.adaptors.version} + zip + + + org.onap.ccsdk.sli.northbound + lcm-installer + ${ccsdk.sli.northbound.version} + zip + + @@ -44,18 +76,16 @@ println project.properties['sdnc.project.version']; def versionArray; if ( project.properties['sdnc.project.version'] != null ) { - versionArray = - project.properties['sdnc.project.version'].split('\\.'); + versionArray = project.properties['sdnc.project.version'].split('\\.'); } if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT")) { - project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; + 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']; + println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; @@ -229,29 +259,59 @@ - exec-maven-plugin - org.codehaus.mojo - 1.5.0 + org.apache.maven.plugins + maven-dependency-plugin + 3.0.2 - - Get features + unpack-sdnc-features generate-sources - exec + unpack-dependencies - /bin/bash - - ${sdnc.northbound.version} - ${project.version} - - - ${basedir}/src/main/scripts/installZips.sh - ${basedir}/target/docker-stage/opt/onap/sdnc - + ${basedir}/target/docker-stage/opt/onap/sdnc/features + org.onap.sdnc + true + + + + unpack-extra-ccsdk-features + generate-sources + + unpack-dependencies + + + ${basedir}/target/docker-stage/opt/onap/ccsdk/features + org.onap.ccsdk + true + + unpack dgs + generate-sources + + unpack + + + ${basedir}/target/docker-stage/opt/onap/sdnc + + + ${project.groupId} + platform-logic-installer + ${project.version} + zip + + + + + + + + exec-maven-plugin + org.codehaus.mojo + 1.5.0 + change shell permissions diff --git a/installation/sdnc/src/main/scripts/installFeatures.sh b/installation/sdnc/src/main/scripts/installFeatures.sh index 66c09b2e..b9763630 100644 --- a/installation/sdnc/src/main/scripts/installFeatures.sh +++ b/installation/sdnc/src/main/scripts/installFeatures.sh @@ -25,8 +25,13 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U} SDNC_HOME=${SDNC_HOME:-/opt/onap/sdnc} CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk} +CCSDK_FEATURE_DIR=${CCSDK_FEATURE_DIR:-${CCSDK_HOME}/features} SDNC_FEATURE_DIR=${SDNC_FEATURE_DIR:-${SDNC_HOME}/features} +CCSDK_EXTRAS=" \ + ansible-adapter \ + lcm" + SDNC_NORTHBOUND_FEATURES=" \ @@ -40,6 +45,18 @@ SDNC_NORTHBOUND_VERSION=${SDNC_NORTHBOUND_VERSION:-1.3.1-SNAPSHOT} # Install CCSDK features ${CCSDK_HOME}/bin/installCcsdkFeatures.sh +# Install CCSDK extras, used by SDNC but not APP-C +echo "Installing CCSDK extras" +for feature in ${CCSDK_FEATURES} +do + if [ -f ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh ] + then + ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh + else + echo "No installer found for ${feature}" + fi +done + echo "Installing SDN-C northbound" for feature in ${SDNC_NORTHBOUND_FEATURES} -- cgit 1.2.3-korg