File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -141,20 +141,13 @@ while :; do
141141 sleep 1
142142 docker top gitlab-test > /dev/null 2>&1 || fatal " docker failed to start"
143143 sleep 4
144- # last command started by the container is "gitlab-ctl tail"
145- docker exec gitlab-test pgrep -f ' gitlab-ctl tail' & > /dev/null \
146- && docker exec gitlab-test curl http://localhost/-/health 2> /dev/null \
147- | grep -q ' GitLab OK' \
148- && curl -s http://localhost:8080/users/sign_in 2> /dev/null \
149- | grep -q " GitLab Community Edition" \
144+ docker logs gitlab-test 2>&1 | grep " gitlab Reconfigured!" \
150145 && break
151146 I=$(( I+ 5 ))
147+ log " Waiting for GitLab to reconfigure.. (${I} s)"
152148 [ " $I " -lt 180 ] || fatal " timed out"
153149done
154150
155- log " Pausing to give GitLab some time to finish starting up..."
156- sleep 200
157-
158151# Get the token
159152TOKEN=$( $( dirname $0 ) /generate_token.py)
160153
You can’t perform that action at this time.
0 commit comments