Add missing components in sdnc docker container 63/44363/1
authorTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 24 Apr 2018 13:06:57 +0000 (09:06 -0400)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 24 Apr 2018 13:06:57 +0000 (09:06 -0400)
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) <dt5972@att.com>
Former-commit-id: db25748dd03f8d48378130059ebde0fc70b7e58a

admportal/pom.xml
installation/sdnc/pom.xml
installation/sdnc/src/main/scripts/installFeatures.sh
platform-logic/installer/pom.xml
platform-logic/pom.xml
platform-logic/restapi-templates/pom.xml
pom.xml
version.properties

index 8ec41ea..aa0d528 100644 (file)
@@ -7,6 +7,7 @@
         <groupId>org.onap.ccsdk.parent</groupId>
         <artifactId>binding-parent</artifactId>
         <version>1.0.1-SNAPSHOT</version>
+        <relativePath/>
     </parent>
 
     <groupId>org.onap.sdnc.oam</groupId>
index 2b4cb10..330ac8c 100644 (file)
        <artifactId>installation-sdnc</artifactId>
        <version>1.3.1-SNAPSHOT</version>
 
-    <name>sdnc-oam :: installation :: ${project.artifactId}</name>
+       <name>sdnc-oam :: installation :: ${project.artifactId}</name>
        <description>Creates SDN Controller Docker container</description>
 
        <properties>
                <image.name>onap/sdnc-image</image.name>
                <sdnc.project.version>${project.version}</sdnc.project.version>
-        <sdnc.northbound.version>1.3.1-SNAPSHOT</sdnc.northbound.version>
+               <sdnc.northbound.version>1.3.1-SNAPSHOT</sdnc.northbound.version>
                <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
-        <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+               <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
        </properties>
 
+    <dependencies>
+               <dependency>
+                       <groupId>org.onap.sdnc.northbound</groupId>
+                       <artifactId>generic-resource-api-installer</artifactId>
+                       <version>${sdnc.northbound.version}</version>
+                       <type>zip</type>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.sdnc.northbound</groupId>
+                       <artifactId>vnfapi-installer</artifactId>
+                       <version>${sdnc.northbound.version}</version>
+                       <type>zip</type>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.sdnc.northbound</groupId>
+                       <artifactId>vnftools-installer</artifactId>
+                       <version>${sdnc.northbound.version}</version>
+                       <type>zip</type>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.ccsdk.sli.adaptors</groupId>
+                       <artifactId>ansible-adapter-installer</artifactId>
+                       <version>${ccsdk.sli.adaptors.version}</version>
+                       <type>zip</type>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.ccsdk.sli.northbound</groupId>
+                       <artifactId>lcm-installer</artifactId>
+                       <version>${ccsdk.sli.northbound.version}</version>
+                       <type>zip</type>
+               </dependency>
+    </dependencies>
 
        <build>
                <plugins>
                                                                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'];
                                                        </source>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
-                               <artifactId>exec-maven-plugin</artifactId>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <version>1.5.0</version>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <version>3.0.2</version>
                                <executions>
-
                                        <execution>
-                                               <id>Get features</id>
+                                               <id>unpack-sdnc-features</id>
                                                <phase>generate-sources</phase>
                                                <goals>
-                                                       <goal>exec</goal>
+                                                       <goal>unpack-dependencies</goal>
                                                </goals>
                                                <configuration>
-                                                       <executable>/bin/bash</executable>
-                                                       <environmentVariables>
-                                                               <SDNC_NORTHBOUND_VERSION>${sdnc.northbound.version}</SDNC_NORTHBOUND_VERSION>
-                                                               <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION>
-                                                       </environmentVariables>
-                                                       <arguments>
-                                                               <argument>${basedir}/src/main/scripts/installZips.sh</argument>
-                                                               <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
-                                                       </arguments>
+                                                       <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/features</outputDirectory>
+                                                       <includeGroupIds>org.onap.sdnc</includeGroupIds>
+                                                       <excludeTransitive>true</excludeTransitive>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>unpack-extra-ccsdk-features</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>unpack-dependencies</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/features</outputDirectory>
+                                                       <includeGroupIds>org.onap.ccsdk</includeGroupIds>
+                                                       <excludeTransitive>true</excludeTransitive>
                                                </configuration>
                                        </execution>
+                                       <execution>
+                                               <id>unpack dgs</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>unpack</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
+                                                       <artifactItems>
+                                                               <artifactItem>
+                                                                       <groupId>${project.groupId}</groupId>
+                                                                       <artifactId>platform-logic-installer</artifactId>
+                                                                       <version>${project.version}</version>
+                                                                       <type>zip</type>
+                                                               </artifactItem>
+                                                       </artifactItems>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <artifactId>exec-maven-plugin</artifactId>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <version>1.5.0</version>
+                               <executions>
 
                                        <execution>
                                                <id>change shell permissions</id>
index 66c09b2..b976363 100644 (file)
@@ -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}
index d520894..adba71e 100644 (file)
@@ -6,6 +6,7 @@
                <groupId>org.onap.ccsdk.parent</groupId>
                <artifactId>odlparent-lite</artifactId>
                <version>1.0.1-SNAPSHOT</version>
+               <relativePath/>
        </parent>
 
        <groupId>org.onap.sdnc.oam</groupId>
index 298b52f..6bafb25 100644 (file)
@@ -11,7 +11,7 @@
 
     <groupId>org.onap.sdnc.oam</groupId>
     <artifactId>platform-logic</artifactId>
-    <version>1.3.0-SNAPSHOT</version>
+    <version>1.3.1-SNAPSHOT</version>
     <packaging>pom</packaging>
 
     <name>sdnc-oam :: platform-logic</name>
index 0ada96f..07f7b5d 100644 (file)
@@ -12,7 +12,7 @@
 
     <groupId>org.onap.sdnc.oam</groupId>
     <artifactId>platform-logic-restapi-templates</artifactId>
-    <version>1.3.0-SNAPSHOT</version>
+    <version>1.3.1-SNAPSHOT</version>
     <packaging>pom</packaging>
 
     <name>sdnc-oam :: platform-logic :: ${project.artifactId}</name>
diff --git a/pom.xml b/pom.xml
index df36904..c49afae 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -4,13 +4,13 @@
 
        <parent>
                <groupId>org.onap.ccsdk.parent</groupId>
-               <artifactId>odlparent-carbon-sr1</artifactId>
-               <version>0.1.0</version>
+               <artifactId>odlparent-lite</artifactId>
+               <version>1.0.1-SNAPSHOT</version>
        </parent>
 
        <groupId>org.onap.sdnc.oam</groupId>
        <artifactId>sdnc-oam</artifactId>
-       <version>1.3.0-SNAPSHOT</version>
+       <version>1.3.1-SNAPSHOT</version>
        <packaging>pom</packaging>
 
        <name>sdnc-oam</name>
index 1dcc37c..9614fbf 100644 (file)
@@ -5,7 +5,7 @@
 
 release_name=1
 sprint_number=3
-feature_revision=0
+feature_revision=1
 
 base_version=${release_name}.${sprint_number}.${feature_revision}