Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | #! /bin/bash |
2 | echo "Waiting for XOS to come up" | ||||
3 | until http 0.0.0.0:80 &> /dev/null | ||||
4 | do | ||||
5 | sleep 1 | ||||
6 | RUNNING_CONTAINER=`sudo docker ps|grep "xos"|awk '{print $$NF}'` | ||||
7 | if [[ $RUNNING_CONTAINER == "" ]]; then | ||||
8 | echo Container may have failed. check with \"make showlogs\' | ||||
9 | exit 1 | ||||
10 | fi | ||||
11 | done | ||||
12 | echo "XOS is ready" |