summaryrefslogtreecommitdiffstats
path: root/ci/launch_docker_container.sh
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-08-28 10:09:57 -0400
committermbeierl <mark.beierl@dell.com>2017-08-28 10:10:55 -0400
commit71aa00561577cafb28a7f2ae4809d36b0c2b5d55 (patch)
treec790e14350eaae0ea8adf8f680b06e41dd81097c /ci/launch_docker_container.sh
parentf3b6df9f7eff64eb0efecc7a1b421bc23cef747a (diff)
Fixup Daily
Allows daily to terminate on error Change-Id: I31efdf3adcf6f2c09e02c21c4d10a5894d0ad6b7 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'ci/launch_docker_container.sh')
-rwxr-xr-xci/launch_docker_container.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/launch_docker_container.sh b/ci/launch_docker_container.sh
index 47a1f17..949bf9d 100755
--- a/ci/launch_docker_container.sh
+++ b/ci/launch_docker_container.sh
@@ -34,7 +34,15 @@ docker-compose -f local-docker-compose.yaml up -d
echo "Waiting for StorPerf to become active"
+ATTEMPTS=20
+
while [ $(curl -s -o /dev/null -I -w "%{http_code}" -X GET http://127.0.0.1:5000/api/v1.0/configurations) != "200" ]
do
+ ATTEMPTS=$((ATTEMPTS - 1))
+ if [ ${ATTEMPTS} -le 1 ]
+ then
+ echo "Failed to get a start up of StorPerf Master"
+ exit 1
+ fi
sleep 1
done