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

Commitfab17fc

Browse files
committed
chore: ensure developers use same gitlab image as Travis
1 parent19242c3 commitfab17fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎tools/build_test_env.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ REUSE_CONTAINER=
2929
NOVENV=
3030
PY_VER=3
3131
API_VER=4
32+
GITLAB_IMAGE="gitlab/gitlab-ce"
33+
GITLAB_TAG="latest"
3234
whilegetopts :knp:a: opt"$@";do
3335
case$optin
3436
k) REUSE_CONTAINER=1;;
3537
n) NOVENV=1;;
3638
p) PY_VER=$OPTARG;;
3739
a) API_VER=$OPTARG;;
40+
t) GITLAB_TAG=$OPTARG;;
3841
:) fatal"Option -${OPTARG} requires a value";;
3942
'?') fatal"Unknown option: -${OPTARG}";;
4043
*) fatal"Internal error: opt=${opt}";;
@@ -81,6 +84,7 @@ cleanup() {
8184
}
8285

8386
if [-z"$REUSE_CONTAINER" ]||! docker top gitlab-test>/dev/null2>&1;then
87+
try docker pull"$GITLAB_IMAGE:$GITLAB_TAG"
8488
GITLAB_OMNIBUS_CONFIG="external_url 'http://gitlab.test'
8589
gitlab_rails['initial_root_password'] = '5iveL!fe'
8690
gitlab_rails['initial_shared_runners_registration_token'] = 'sTPNtWLEuSrHzoHP8oCU'
@@ -103,7 +107,7 @@ letsencrypt['enable'] = false
103107
"
104108
try docker run --name gitlab-test --detach --publish 8080:80 \
105109
--publish 2222:22 --env"GITLAB_OMNIBUS_CONFIG=$GITLAB_OMNIBUS_CONFIG" \
106-
gitlab/gitlab-ce:latest>/dev/null
110+
"$GITLAB_IMAGE:$GITLAB_TAG">/dev/null
107111
fi
108112

109113
LOGIN='root'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp