File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -141,20 +141,13 @@ while :; do
141
141
sleep 1
142
142
docker top gitlab-test > /dev/null 2>&1 || fatal " docker failed to start"
143
143
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!" \
150
145
&& break
151
146
I=$(( I+ 5 ))
147
+ log " Waiting for GitLab to reconfigure.. (${I} s)"
152
148
[ " $I " -lt 180 ] || fatal " timed out"
153
149
done
154
150
155
- log " Pausing to give GitLab some time to finish starting up..."
156
- sleep 200
157
-
158
151
# Get the token
159
152
TOKEN=$( $( dirname $0 ) /generate_token.py)
160
153
You can’t perform that action at this time.
0 commit comments