3 sudo chown onap:onap -R /service
4 find /service -name '*.sh'|xargs chmod a+x
6 if [ -z "$SERVICE_IP" ]; then
7 export SERVICE_IP=`hostname -i`
9 echo "SERVICE_IP=$SERVICE_IP"
11 if [ -z "$MSB_ADDR" ]; then
12 echo "Missing required variable MSB_ADDR: Microservices Service Bus address <ip>:<port>"
15 echo "MSB_ADDR=$MSB_ADDR"
17 # Wait for MSB initialization
18 echo "Wait for MSB initialization"
20 curl -sS -m 1 $MSB_PROTO://$MSB_ADDR/msb -k > /dev/null
22 if [ $res -ne 0 ]; then
28 # Configure service based on docker environment variables
29 vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/docker/instance_config.sh
31 # microservice-specific one-time initialization
32 vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/docker/instance_init.sh
36 # Start the microservice
37 vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/docker/instance_run.sh