diff options
author | demx8as6 <martin.skorupski@highstreet-technologies.com> | 2018-07-10 18:07:44 +0200 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-07-11 16:30:28 -0400 |
commit | 27fb2d06608fbb070ae2c15a5580a4f5b2423d15 (patch) | |
tree | ccd717991b4e556b67f1fd2cacb345b4d174b41f /sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh | |
parent | 60315525ab5e7c12a9f47c409092e8dba6ad656d (diff) |
Add seed code for sdnr app based on ONF Centennial
At this point in time all the Carbon code from ONF Centennial is added to ONAP.
Later it needs to be refactored and modified for ODL Oxygen.
Change-Id: Iff85dd940c05c3827f1c4e6f9542ecd060c58a46
Issue-ID: SDNC-374
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh')
-rw-r--r-- | sdnr/wireless-transport/code-Carbon-SR1/docs/installServiceExample.sh | 48 |
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" + |