File tree 3 files changed +23
-5
lines changed
3 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ RUN set -ex && \
58
58
&& rm -rf /var/lib/apt/lists/*
59
59
60
60
COPY assets/build/ ${GITLAB_BUILD_DIR}/
61
+ ARG GITLAB_EDITION=ce
61
62
RUN bash ${GITLAB_BUILD_DIR}/install.sh
62
63
63
64
COPY assets/runtime/ ${GITLAB_RUNTIME_DIR}/
Original file line number Diff line number Diff line change @@ -134,12 +134,20 @@ You can also pull the `latest` tag which is built from the repository *HEAD*
134
134
docker pull sameersbn/gitlab:latest
135
135
```
136
136
137
- Alternatively you can build the image locally.
137
+ Alternatively you can build the images locally.
138
+
139
+ ## Community Edition
138
140
139
141
``` bash
140
142
docker build -t sameersbn/gitlab github.com/sameersbn/docker-gitlab
141
143
```
142
144
145
+ ## Enterprise Edition
146
+
147
+ ``` bash
148
+ docker build --build-arg GITLAB_EDITION=ee -t sameersbn/gitlab-ee github.com/sameersbn/docker-gitlab
149
+ ```
150
+
143
151
# Quick Start
144
152
145
153
The quickest way to get started is using [ docker-compose] ( https://docs.docker.com/compose/ ) .
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- GITLAB_CLONE_URL=https://gitlab.com/gitlab-org/gitlab-foss.git
4
+ GITLAB_EDITION=${GITLAB_EDITION:- ce}
5
+
6
+ # if we're using the enterprise edition suffix the version with -ee
7
+ if [ x" ${GITLAB_EDITION} " = x" ee" ] ; then
8
+ GITLAB_VERSION=" ${GITLAB_VERSION} -ee"
9
+ GITLAB_CLONE_URL=https://gitlab.com/gitlab-org/gitlab.git
10
+ else
11
+ GITLAB_CLONE_URL=https://gitlab.com/gitlab-org/gitlab-foss.git
12
+ fi
13
+
5
14
GITLAB_SHELL_URL=https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${GITLAB_SHELL_VERSION} /gitlab-shell-v${GITLAB_SHELL_VERSION} .tar.bz2
6
15
GITLAB_PAGES_URL=https://gitlab.com/gitlab-org/gitlab-pages.git
7
16
GITLAB_GITALY_URL=https://gitlab.com/gitlab-org/gitaly.git
@@ -63,12 +72,12 @@ exec_as_git git config --global gc.auto 0
63
72
exec_as_git git config --global repack.writeBitmaps true
64
73
exec_as_git git config --global receive.advertisePushOptions true
65
74
66
- # shallow clone gitlab-foss
67
- echo " Cloning gitlab-foss v.${GITLAB_VERSION} ..."
75
+ # shallow clone gitlab
76
+ echo " Cloning gitlab-${GITLAB_EDITION} v.${GITLAB_VERSION} ..."
68
77
exec_as_git git clone -q -b v${GITLAB_VERSION} --depth 1 ${GITLAB_CLONE_URL} ${GITLAB_INSTALL_DIR}
69
78
70
79
if [[ -d " ${GITLAB_BUILD_DIR} /patches" ]]; then
71
- echo " Applying patches for gitlab-foss ..."
80
+ echo " Applying patches for gitlab-${GITLAB_EDITION} ..."
72
81
exec_as_git git -C ${GITLAB_INSTALL_DIR} apply --ignore-whitespace < ${GITLAB_BUILD_DIR} /patches/* .patch
73
82
fi
74
83
You can’t perform that action at this time.
0 commit comments