File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,15 @@ REUSE_CONTAINER=
2929NOVENV=
3030PY_VER=3
3131API_VER=4
32+ GITLAB_IMAGE=" gitlab/gitlab-ce"
33+ GITLAB_TAG=" latest"
3234while getopts :knp:a: opt " $@ " ; do
3335 case $opt in
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
8386if [ -z " $REUSE_CONTAINER " ] || ! docker top gitlab-test > /dev/null 2>&1 ; then
87+ try docker pull " $GITLAB_IMAGE :$GITLAB_TAG "
8488 GITLAB_OMNIBUS_CONFIG=" external_url 'http://gitlab.test'
8589gitlab_rails['initial_root_password'] = '5iveL!fe'
8690gitlab_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
107111fi
108112
109113LOGIN=' root'
You can’t perform that action at this time.
0 commit comments