summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/docker
diff options
context:
space:
mode:
authorGao Weitao <victor.gao@huawei.com>2017-09-11 13:22:01 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-11 13:22:01 +0000
commit89b20536425441a464d4832667abae80a6cd818f (patch)
tree7e5ce2f33ff44b8cd45f3831d608518c05983850 /ResmanagementService/docker
parent01a2d8980f035231823612b5bedd56cd0d031bb2 (diff)
parent07239265d183cc03158a86d6ddc2cabf4e0b053b (diff)
Merge "Set MSB_ADDR for vfc-resmangement"
Diffstat (limited to 'ResmanagementService/docker')
-rw-r--r--ResmanagementService/docker/docker-entrypoint.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/ResmanagementService/docker/docker-entrypoint.sh b/ResmanagementService/docker/docker-entrypoint.sh
index 12506dc..c2cf899 100644
--- a/ResmanagementService/docker/docker-entrypoint.sh
+++ b/ResmanagementService/docker/docker-entrypoint.sh
@@ -27,19 +27,19 @@ echo
echo Environment Variables:
echo "SERVICE_IP=$SERVICE_IP"
-#if [ -z "$MSB_ADDR" ]; then
-# echo "Missing required variable MSB_ADDR: Microservices Service Bus address <ip>:<port>"
-# exit 1
-#fi
-#echo "MSB_ADDR=$MSB_ADDR"
-#echo
+if [ -z "$MSB_ADDR" ]; then
+ echo "Missing required variable MSB_ADDR: Microservices Service Bus address <ip>:<port>"
+ exit 1
+fi
+echo "MSB_ADDR=$MSB_ADDR"
+echo
-## Wait for MSB initialization
-#echo Wait for MSB initialization
-#for i in {1..20}; do
-# curl -sS -m 1 $MSB_ADDR > /dev/null && break
-# sleep $i
-#done
+# Wait for MSB initialization
+echo Wait for MSB initialization
+for i in {1..10}; do
+ curl -sS -m 1 $MSB_ADDR > /dev/null && break
+ sleep $i
+done
echo