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:9999 &> /dev/null | ||||
4 | do | ||||
5 | sleep 1 | ||||
6 | echo -ne "." | ||||
7 | RUNNING_CONTAINER=`sudo docker ps|grep "xos"|awk '{print $$NF}'` | ||||
8 | if [[ $RUNNING_CONTAINER == "" ]]; then | ||||
9 | echo Container may have failed. check with \"make showlogs\' | ||||
10 | exit 1 | ||||
11 | fi | ||||
12 | done | ||||
13 | echo "XOS is ready" |