Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yep/gitlab-docker
Automated build of GitLab with docker.io
https://github.com/yep/gitlab-docker
Last synced: 3 months ago
JSON representation
Automated build of GitLab with docker.io
- Host: GitHub
- URL: https://github.com/yep/gitlab-docker
- Owner: yep
- Fork: true (jeffutter/gitlab-docker)
- Created: 2013-11-07T16:50:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-08T15:30:34.000Z (about 11 years ago)
- Last Synced: 2024-07-18T22:20:48.503Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 114 KB
- Stars: 11
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitLab Docker Build Script
This Dockerfile will create a new Docker container running GitLab 6.2 on Ubuntu 13.10.
## Installation
Follow these instructions to download or build GitLab.
### Step 0: Install Docker
[Follow these instructions](http://www.docker.io/gettingstarted/#h_installation) to get Docker running on your server.
### Step 1: Build
Clone repository:
git clone https://github.com/yep/gitlab-docker.git
cd gitlab-dockerEdit the `firstrun.sh` script and change the variables:
* `POSTGRES_PASS` to a new, random password for postgresql
* `DOMAIN_NAME` to the fully qualified domain name of your serverStart the build:
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.
### Step 2: Run
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, replace `PATH/TO/gitlab-docker` with the absolute path of your git repository clone and run the following:
cd PATH/TO/gitlab-docker
docker run -d -v PATH/TO/gitlab-docker:/srv/gitlab gitlabThat's all to start running gitlab. You might want to do some further configuration, though.
### Step 3: Change Default Admin Password
Log in to your gitlab install using the account below, change its password and optionally its email address, too:
login: [email protected]
password: 5iveL!fe### Step 4: Trust https Certificate
The setup redirects http requests to https and uses a self signed https certificate. In order to be sure you are connecting to the correct host with https, check the https certificate fingerprint.
Display https certifcate SHA-1 fingerprint (replace CONTAINER_ID):
docker logs CONTAINER_ID 2>&1 | grep Fingerprint
Distribute this fingerprint to everybody who is going to use the server. They can then each check if the SHA-1 fingerprint shown by their browser is correct.
It is recommended to permanently trust the self signed certificate so you can notice if it should change unintentionally some day. How to trust the certificate permanently depends on the browser you use.
On OS X with Chrome version 30, permanently trust the certificate like this:
* Click on the padlock icon next to the URL of your server
* In tab `connection` press on `certificate information`
* Drag and drop the certificate icon to your desktop
* Double click the certificate file with file extension .cer to add it to your keychain permanently
* Restart Chrome