The GitLab all-in-one Docker image uses Ubuntu 16.04 package created by
omnibus-gitlab under the hood. The files required for building Docker image
can be found inside the
Docker directory of
RELEASE file which needs to be compiled manually, as described below.
The details of the version of the package being used is stored in a file named
RELEASE. To build your own Docker image, you should create this file with
contents similar to the following
RELEASE_PACKAGE=gitlab-ee RELEASE_VERSION=13.2.0-ee DOWNLOAD_URL=https://example.com/gitlab-ee_13.2.00-ee.0_amd64.deb
RELEASE_PACKAGE specifies whether the package is a CE one or EE one.
RELEASE_VERSION specifies the version of the package (
DOWNLOAD_URL specifies the URL
where that package can be downloaded from.
NOTE Note: We’re looking at improving this situation, and using locally available packages in issue #5550.
To build the Docker image after populating the
cd docker docker build -t omnibus-gitlab-image:custom .
The image will be built and tagged as