e83c350d2e25bbfead5a6367054642e4ac9e9546
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / docs / installServiceExample.sh
1 #!/bin/bash
2 # Install feature powercontroll / FRINX
3 # Example for script based setup of KARAF container
4
5 karafcmd() {
6   echo $1
7   ./bin/client "$1"
8 }
9
10 echo pull from git
11 cd ~/apps/CENTENNIAL/code/apps/wirelessPowerControl/impl
12 git pull
13 echo compile
14 mvn clean install -DskipTests
15
16
17 echo copy the files
18 cp -R ~/.m2/repository/com/highstreet/technologies/odl/app/wi* $ODL_KARAF_HOME/system/com/highstreet/technologies/odl/app
19
20 cd $ODL_KARAF_HOME
21 echo stop
22 ./bin/stop
23 sleep 30
24
25 echo start clean
26 ./bin/start clean
27
28 sleep 30
29 echo install
30 karafcmd "feature:install odl-netconf-topology"
31 karafcmd "feature:install odl-netconf-connector-all"
32 karafcmd "feature:install odl-restconf-all"
33 karafcmd "feature:install odl-mdsal-apidocs"
34 karafcmd "feature:install odl-dlux-all"
35 karafcmd "feature:repo-add mvn:org.opendaylight.mwtn/mwtn-parent/0.4.0-SNAPSHOT/xml/features"
36 karafcmd "feature:install elasticsearch"
37 karafcmd "feature:repo-add mvn:com.highstreet.technologies.odl.app/wirelessPowerControl-features/0.4.0-SNAPSHOT/xml/features"
38 karafcmd "feature:install odl-wirelessPowerControl"
39 karafcmd "feature:install odl-mwtn-all"
40 karafcmd "feature:repo-add mvn:com.highstreet.technologies.odl.app/route-features/0.4.0-SNAPSHOT/xml/features"
41 karafcmd "feature:install odl-route"
42
43 ./bin/stop
44 sleep 30
45 ./bin/start
46
47 echo "Ready"
48