Skip to content

Commit 58106a0

Browse files
committed
check if docker container is up when waiting for gitlab
There's no point in waiting for GitLab to come up if the docker container died.
1 parent b21fdda commit 58106a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/build_test_env.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ OK="echo -e ${GREEN}OK${NC}"
7575
log "Waiting for gitlab to come online... "
7676
I=0
7777
while :; do
78-
sleep 5
78+
sleep 1
79+
docker top gitlab-test >/dev/null 2>&1 || fatal "docker failed to start"
80+
sleep 4
7981
curl -s http://localhost:8080/users/sign_in 2>/dev/null \
8082
| grep -q "GitLab Community Edition" && break
8183
let I=I+5

0 commit comments

Comments
 (0)