compose-website/tests/test-image.sh
2014-12-03 17:13:03 +00:00

13 lines
283 B
Bash
Executable file

#!/bin/bash -eux
image=$1
if [ "$image" == "wordpress" ] || [ "$image" == "known" ]; then
sleep 70
else
sleep 10
fi
systemctl list-units | grep "$image\.test" | grep -c failed | grep 0
ip=`docker inspect --format {{.NetworkSettings.IPAddress}} $image-$image.test`
curl -L $ip