@@ -7,17 +7,17 @@ Learn more on [https://about.gitlab.com](https://about.gitlab.com)
...
@@ -7,17 +7,17 @@ Learn more on [https://about.gitlab.com](https://about.gitlab.com)
## How to build and use the docker images
## How to build and use the docker images
This guide will let you know how to build docker images yourself.
After starting a container you can go to [http://localhost:8080/](http://localhost:8080/) or [http://192.168.59.103:8080/](http://192.168.59.103:8080/) if you use boot2docker.
Run the below commands from the GitLab repo root directory.
People using boot2docker on OSX should run all the commands without sudo.
After starting a container you can then go to [http://localhost:8080/](http://localhost:8080/) or [http://192.168.59.103:8080/](http://192.168.59.103:8080/) if you use boot2docker.
It might take a while before the docker container is responding to queries.
It might take a while before the docker container is responding to queries.
You can login to the web interface with username `root` and password `5iveL!fe`.
You can login to the web interface with username `root` and password `5iveL!fe`.
Next time, you can just use docker start and stop to run the container.
Next time, you can just use docker start and stop to run the container.
This guide will also let you know how to build docker images yourself.
Please run all the commands from the GitLab repo root directory.
People using boot2docker should run all the commands without sudo.
## Choosing between the single and the app and data images
## Choosing between the single and the app and data images
Normally docker uses a single image for one applications.
Normally docker uses a single image for one applications.
...
@@ -29,43 +29,59 @@ After that we'll describe how to use the app and data images.
...
@@ -29,43 +29,59 @@ After that we'll describe how to use the app and data images.
## Single image
## Single image
Build the image with:
Get a published image from Dockerhub:
```
```bash
sudo docker build --tag gitlab-ce docker/single/
sudo docker pull sytse/gitlab-ce:7.10.1
```
```
Run the image with:
Run the image:
```
```bash
sudo docker run --detach--name gitlab-ce --publish 8080:80 --publish 2222:22 gitlab-ce
sudo docker run --detach--name gitlab-ce --publish 8080:80 --publish 2222:22 gitlab-ce
You can follow the configuration process with `sudo docker logs -f gitlab-app`.
### Configure GitLab
### Configure GitLab
...
@@ -129,7 +133,7 @@ On the first run GitLab will reconfigure and update itself. If everything runs O
...
@@ -129,7 +133,7 @@ On the first run GitLab will reconfigure and update itself. If everything runs O
sudo docker rmi gitlab-app:7.8.1
sudo docker rmi gitlab-app:7.8.1
```
```
### Publish app and data images to Dockerhub
### Publish images to Dockerhub
Login to Dockerhub with `sudo docker login` and run the following (replace '7.9.2' with the version you're using and 'Sytse Sijbrandij' with your name):
Login to Dockerhub with `sudo docker login` and run the following (replace '7.9.2' with the version you're using and 'Sytse Sijbrandij' with your name):