summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2017-09-11 17:43:17 +0800
committerluxin <luxin7@huawei.com>2017-09-11 17:45:41 +0800
commit07239265d183cc03158a86d6ddc2cabf4e0b053b (patch)
tree4aaf7a5dbd461b83fbd73f14801da814a177cb74 /ResmanagementService/docker/docker-entrypoint.sh
parent517452b495f79fd1e78d21bb2c38198be27f1bbc (diff)
Set MSB_ADDR for vfc-resmangement
Change-Id: I56f0682c0ab17b2fe6329ab71a8f8715bdb54ed6 Issue-Id:VFC-327 Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'ResmanagementService/docker/docker-entrypoint.sh')
-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