File tree Expand file tree Collapse file tree 3 files changed +23
-5
lines changed Expand file tree Collapse file tree 3 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ RUN set -ex && \
5858 && rm -rf /var/lib/apt/lists/*
5959
6060COPY  assets/build/ ${GITLAB_BUILD_DIR}/
61+ ARG  GITLAB_EDITION=ce
6162RUN  bash ${GITLAB_BUILD_DIR}/install.sh
6263
6364COPY  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*
134134docker pull sameersbn/gitlab:latest
135135``` 
136136
137- Alternatively you can build the image locally.
137+ Alternatively you can build the images locally.
138+ 
139+ ## Community Edition  
138140
139141``` bash 
140142docker build -t sameersbn/gitlab github.com/sameersbn/docker-gitlab
141143``` 
142144
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+ 
143151# Quick Start  
144152
145153The quickest way to get started is using [ docker-compose] ( https://docs.docker.com/compose/ ) .
Original file line number Diff line number Diff line change 11#! /bin/bash
22set  -e
33
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+ 
514GITLAB_SHELL_URL=https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${GITLAB_SHELL_VERSION} /gitlab-shell-v${GITLAB_SHELL_VERSION} .tar.bz2
615GITLAB_PAGES_URL=https://gitlab.com/gitlab-org/gitlab-pages.git
716GITLAB_GITALY_URL=https://gitlab.com/gitlab-org/gitaly.git
@@ -63,12 +72,12 @@ exec_as_git git config --global gc.auto 0
6372exec_as_git git config --global repack.writeBitmaps true 
6473exec_as_git git config --global receive.advertisePushOptions true 
6574
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} ..." 
6877exec_as_git git clone -q -b v${GITLAB_VERSION}  --depth 1 ${GITLAB_CLONE_URL}  ${GITLAB_INSTALL_DIR} 
6978
7079if  [[ -d  " ${GITLAB_BUILD_DIR} /patches"   ]];  then 
71- echo  " Applying patches for gitlab-foss ..." 
80+ echo  " Applying patches for gitlab-${GITLAB_EDITION} ..." 
7281exec_as_git git -C ${GITLAB_INSTALL_DIR}  apply --ignore-whitespace <  ${GITLAB_BUILD_DIR} /patches/* .patch
7382fi 
7483
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments