summaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh')
-rw-r--r--sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh b/sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh
new file mode 100644
index 00000000..e83c350d
--- /dev/null
+++ b/sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+# Install feature powercontroll / FRINX
+# Example for script based setup of KARAF container
+
+karafcmd() {
+ echo $1
+ ./bin/client "$1"
+}
+
+echo pull from git
+cd ~/apps/CENTENNIAL/code/apps/wirelessPowerControl/impl
+git pull
+echo compile
+mvn clean install -DskipTests
+
+
+echo copy the files
+cp -R ~/.m2/repository/com/highstreet/technologies/odl/app/wi* $ODL_KARAF_HOME/system/com/highstreet/technologies/odl/app
+
+cd $ODL_KARAF_HOME
+echo stop
+./bin/stop
+sleep 30
+
+echo start clean
+./bin/start clean
+
+sleep 30
+echo install
+karafcmd "feature:install odl-netconf-topology"
+karafcmd "feature:install odl-netconf-connector-all"
+karafcmd "feature:install odl-restconf-all"
+karafcmd "feature:install odl-mdsal-apidocs"
+karafcmd "feature:install odl-dlux-all"
+karafcmd "feature:repo-add mvn:org.opendaylight.mwtn/mwtn-parent/0.4.0-SNAPSHOT/xml/features"
+karafcmd "feature:install elasticsearch"
+karafcmd "feature:repo-add mvn:com.highstreet.technologies.odl.app/wirelessPowerControl-features/0.4.0-SNAPSHOT/xml/features"
+karafcmd "feature:install odl-wirelessPowerControl"
+karafcmd "feature:install odl-mwtn-all"
+karafcmd "feature:repo-add mvn:com.highstreet.technologies.odl.app/route-features/0.4.0-SNAPSHOT/xml/features"
+karafcmd "feature:install odl-route"
+
+./bin/stop
+sleep 30
+./bin/start
+
+echo "Ready"
+