Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3834d9c

Browse files
committed
perf: prepare environment when gitlab is reconfigured
1 parent19242c3 commit3834d9c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

‎tools/build_test_env.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,13 @@ while :; do
141141
sleep 1
142142
docker top gitlab-test>/dev/null2>&1|| fatal"docker failed to start"
143143
sleep 4
144-
# last command started by the container is "gitlab-ctl tail"
145-
dockerexec gitlab-test pgrep -f'gitlab-ctl tail'&>/dev/null \
146-
&& dockerexec gitlab-test curl http://localhost/-/health2>/dev/null \
147-
| grep -q'GitLab OK' \
148-
&& curl -s http://localhost:8080/users/sign_in2>/dev/null \
149-
| grep -q"GitLab Community Edition" \
144+
docker logs gitlab-test2>&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"
153149
done
154150

155-
log"Pausing to give GitLab some time to finish starting up..."
156-
sleep 200
157-
158151
# Get the token
159152
TOKEN=$($(dirname$0)/generate_token.py)
160153

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp