summaryrefslogtreecommitdiffstats
path: root/huawei
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2017-09-11 17:46:45 +0800
committerluxin <luxin7@huawei.com>2017-09-11 17:46:45 +0800
commit4b60a1dfeb7d3906c05cb7aabcb8896d15dd671d (patch)
tree55e430bdd914c7859b6c9a9e0bdb5033481e995b /huawei
parentba84daafa5d4cd2912d902f5129349d462b57e98 (diff)
Modify docker shell
Set MSB address Change-Id: Ie45f5397cbddd749ecf034b32ebf75b4626bb882 Issue-Id:VFC-327 Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'huawei')
-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