aboutsummaryrefslogtreecommitdiffstats
path: root/aafshiro/installer/src
diff options
context:
space:
mode:
authorUbuntu <ra1926@att.com>2019-02-20 19:24:25 +0000
committerDan Timoney <dtimoney@att.com>2019-03-27 17:10:18 +0000
commitf2bb490d9c82decbdb50c1e4db1be2f34b28d097 (patch)
tree9adb09c461b258f5aeeb2b483d375750e6e0db17 /aafshiro/installer/src
parent1f68c64e8bcf88ee485c69d36c67b0ad6590a293 (diff)
add aafshiro feature
add feature module aafshiro to support AAF Change-Id: Ia2a15e04a070351fb5ba328d8443aef695c51801 Issue-ID: SDNC-485 Signed-off-by: Ubuntu <ra1926@att.com>
Diffstat (limited to 'aafshiro/installer/src')
-rwxr-xr-xaafshiro/installer/src/assembly/assemble_installer_zip.xml39
-rwxr-xr-xaafshiro/installer/src/assembly/assemble_mvnrepo_zip.xml29
-rwxr-xr-xaafshiro/installer/src/main/resources/scripts/install-feature.sh18
3 files changed, 86 insertions, 0 deletions
diff --git a/aafshiro/installer/src/assembly/assemble_installer_zip.xml b/aafshiro/installer/src/assembly/assemble_installer_zip.xml
new file mode 100755
index 000000000..adbec6c13
--- /dev/null
+++ b/aafshiro/installer/src/assembly/assemble_installer_zip.xml
@@ -0,0 +1,39 @@
+<!-- Defines how we build the .zip file which is our distribution. -->
+
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>installer_zip</id>
+
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <!-- we want "system" and related files right at the root level
+ as this file is suppose to be unzip on top of a karaf
+ distro. -->
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/stage/</directory>
+ <outputDirectory>${application.name}</outputDirectory>
+ <fileMode>755</fileMode>
+ <includes>
+ <include>*.sh</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target/stage/</directory>
+ <outputDirectory>${application.name}</outputDirectory>
+ <fileMode>644</fileMode>
+ <excludes>
+ <exclude>*.sh</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+
+
+
+</assembly>
diff --git a/aafshiro/installer/src/assembly/assemble_mvnrepo_zip.xml b/aafshiro/installer/src/assembly/assemble_mvnrepo_zip.xml
new file mode 100755
index 000000000..86b07f1f3
--- /dev/null
+++ b/aafshiro/installer/src/assembly/assemble_mvnrepo_zip.xml
@@ -0,0 +1,29 @@
+<!-- Defines how we build the .zip file which is our distribution. -->
+
+<assembly
+ xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>repo</id>
+
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <!-- we want "system" and related files right at the root level
+ as this file is suppose to be unzip on top of a karaf
+ distro. -->
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/assembly/</directory>
+ <outputDirectory>.</outputDirectory>
+ <excludes>
+ </excludes>
+ </fileSet>
+ </fileSets>
+
+
+
+</assembly>
diff --git a/aafshiro/installer/src/main/resources/scripts/install-feature.sh b/aafshiro/installer/src/main/resources/scripts/install-feature.sh
new file mode 100755
index 000000000..e16e79a12
--- /dev/null
+++ b/aafshiro/installer/src/main/resources/scripts/install-feature.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
+ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client}
+INSTALLERDIR=$(dirname $0)
+
+REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip
+
+if [ -f ${REPOZIP} ]
+then
+ unzip -d ${ODL_HOME} ${REPOZIP}
+else
+ echo "ERROR : repo zip ($REPOZIP) not found"
+ exit 1
+fi
+
+${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories}
+${ODL_KARAF_CLIENT} feature:install ${features.boot}