Wait for port being accessible in addition to the notify socket

This commit is contained in:
Thomas Müller 2016-05-11 09:37:02 +02:00
parent 5d1ef68cf0
commit bac96e7ffc
No known key found for this signature in database
GPG Key ID: A943788A3BBEC44C
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ if [[ $ready != 'READY=1' ]]; then
docker logs $container
exit 1
fi
if ! "$thisFolder"/env/wait-for-connection ${host} 80 600; then
echo "[ERROR] Waited 600 seconds, no response" >&2
docker logs $container
exit 1
fi
echo "Waiting another 15 seconds"
sleep 15