Removed opendaylight build capabilities as a preparation toward Arno SR1
[genesis.git] / fuel / build / f_odl_docker / dockerfile / container_scripts / start_odl_docker.sh
1 #!/bin/bash
2 #  Ericsson Research Canada
3 #
4 #  Author: Daniel Smith <daniel.smith@ericsson.com>
5 #
6 #  Start up script for calling karaf / ODL inside a docker container.
7 #
8 #  This script will also call a couple expect scripts to load the feature set that we want
9
10
11 #ENV
12 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
13
14 #MAIN
15 echo "Starting up the da Sheilds..."
16 /opt/odl/distribution-karaf-0.2.3-Helium-SR3/bin/karaf server &
17 echo "Sleeping 5 bad hack"
18 sleep 10
19 echo "should see stuff listening now"
20 netstat -na
21 echo " should see proess running for karaf"
22 ps -efa
23 echo " Starting the packages we want"
24 /etc/init.d/speak.sh
25 echo "Printout the status - if its right, you should see 8181 appear now"
26 netstat -na
27 ps -efa
28
29
30
31 ## This is a loop that keeps our container going currently, prinout the "status of karaf" to the docker logs every minute
32 ## Cheap - but effective
33 while true;
34 do
35         echo "Checking status of ODL:"
36         /opt/odl/distribution-karaf-0.2.3-Helium-SR3/bin/status
37         sleep 60
38 done