Automated buld of GitLab with Docker.io
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
This Dockerfile will create a new Docker container running GitLab 6.4 on Ubuntu 12.04.
Follow these instructions to download or build GitLab.
Follow these instructions to get Docker running on your server.
With Docker installed and running, do one of the following to obtain GitLab.
Pull From Docker Index:
docker pull crashsystems/gitlab-docker
Build It Yourself
git clone https://github.com/crashsystems/gitlab-docker.git cd gitlab-docker docker build -t gitlab .
Note that since GitLab has a large number of dependencies, both pulling from the index or running the build process will take a while, although pulling should be somewhat faster.
If you obtained the image via docker pull and therefore didn't clone the GitHub repo, go ahead and do so at this time. The config/ folder of the repository contains configuration files you will need to edit before creating a new container instance.
In addition, set the mysqlRoot variable in firstrun.sh to a good password for your MySQL root user.
This build makes use of Docker's ability to map host directories to directories inside a container. It does this so that a user's custom configuration can be injected into the container at first start. In addition, since the data is stored outside the container, it allows a user to put the folder on faster storage such as an SSD for higher performance.
To create the container instance, run the following:
Next, run this if you pulled the image from the Docker index:
docker run -d -v /path/to/gitlab-docker:/srv/gitlab -name gitlab crashsystems/gitlab-docker
Or this if you built it yourself:
docker run -d -v /path/to/gitlab-docker:/srv/gitlab -name gitlab gitlab
/path/to/gitlab-docker represents the folder created by the git clone on the Docker host, and will contain the GitLab instance's data. Make sure to move it to your desired location before running the container. Also, the first boot of the container will take a bit longer, as the firstrun.sh script will be invoked to perform various initialization tasks.
GitLab creates an admin account during setup. You can use it to log in:
[email protected] 5iveL!fe
It should be possible to use updates to this build to update a GitLab server. The process is as follows:
Note that while this process has been mostly tested, it has not yet been tested with DB migrations. As with any time you perform software updates, do a backup first.