3 if [ -z "$SERVICE_IP" ]; then
4 export SERVICE_IP=`hostname -i`
6 echo "SERVICE_IP=$SERVICE_IP"
9 if [ -z "$MSB_ADDR" ]; then
10 echo "Missing required variable MSB_ADDR: Microservices Service Bus address <ip>:<port>"
13 echo "MSB_ADDR=$MSB_ADDR"
15 # Wait for MSB initialization
16 echo "Wait for MSB initialization"
18 curl -sS -m 1 $MSB_PROTO:$MSB_ADDR/msb -k > /dev/null
20 if [ $res -ne 0 ]; then
26 # Configure service based on docker environment variables
27 emsdriver/docker/instance_config.sh
31 # Start the microservice
32 emsdriver/docker/instance_run.sh