summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGao Weitao <victor.gao@huawei.com>2017-09-12 11:14:06 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-12 11:14:06 +0000
commit6cb779a46c0f226402102ad49e84700a868bbc2b (patch)
treea8d42082d0f4a08454d5f436b1d6428f287c345f
parent8ff2de2c5d1d640626a4e6de135bea63e33f71d5 (diff)
parent4b60a1dfeb7d3906c05cb7aabcb8896d15dd671d (diff)
Merge "Modify docker shell"
-rwxr-xr-xhuawei/vnfmadapter/VnfmadapterService/docker/docker-entrypoint.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/docker-entrypoint.sh b/huawei/vnfmadapter/VnfmadapterService/docker/docker-entrypoint.sh
index 756024c8..1d235f61 100755
--- a/huawei/vnfmadapter/VnfmadapterService/docker/docker-entrypoint.sh
+++ b/huawei/vnfmadapter/VnfmadapterService/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