Skip to content

Commit

Permalink
check if docker container is up when waiting for gitlab
Browse files Browse the repository at this point in the history
There's no point in waiting for GitLab to come up if the docker
container died.
  • Loading branch information
rhansen committed Jan 31, 2016
1 parent b21fdda commit 58106a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/build_test_env.sh
Expand Up @@ -75,7 +75,9 @@ OK="echo -e ${GREEN}OK${NC}"
log "Waiting for gitlab to come online... "
I=0
while :; do
sleep 5
sleep 1
docker top gitlab-test >/dev/null 2>&1 || fatal "docker failed to start"
sleep 4
curl -s http://localhost:8080/users/sign_in 2>/dev/null \
| grep -q "GitLab Community Edition" && break
let I=I+5
Expand Down

0 comments on commit 58106a0

Please sign in to comment.