Skip to content
This repository was archived by the owner on Oct 25, 2019. It is now read-only.

Commit 50965db

Browse files
author
Vincent Robert
committed
Improve README based on GitLab feedbacks
1 parent f1c3827 commit 50965db

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

README.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ GitLab offers git repository management, code reviews, issue tracking, activity
88
![GitLab Logo](https://gitlab.com/uploads/appearance/logo/1/brand_logo-c37eb221b456bb4b472cc1084480991f.png)
99

1010

11-
How to use this image.
12-
======================
11+
How to use this image
12+
=====================
1313

1414
I recommend creating a data volume container first, this will simplify migrations and backups:
1515

16-
docker run --name gitlab_data genezys/gitlab:7.5.1 /bin/true
16+
```bash
17+
docker run --name gitlab_data genezys/gitlab:7.5.1 /bin/true
18+
```
1719

1820
This empty container will exist to persist as volumes the 3 directories used by GitLab, so remember not to delete it:
1921

@@ -23,22 +25,29 @@ This empty container will exist to persist as volumes the 3 directories used by
2325

2426
Then run GitLab:
2527

26-
docker run --detach --name gitlab --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data genezys/gitlab:7.5.1
28+
```bash
29+
docker run --detach --name gitlab --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data genezys/gitlab:7.5.1
30+
```
2731

28-
You can then go to `http://localhost:8080/` (or most likely `http://192.168.59.103:8080/` if you use boot2docker). Next time, you can just use `docker start gitlab` and `docker stop gitlab`.
32+
The first run will take a while as GitLab needs to configure itself.
2933

30-
To login, you can use the default GitLab credentials: username: `root`, password `5iveL!fe`.
34+
You can then go to `http://localhost:8080/` (or `http://192.168.59.103:8080/` if you use boot2docker). Next time, you can just use `docker start gitlab` and `docker stop gitlab`.
3135

36+
To login, you can use the default GitLab credentials: username `root`, password `5iveL!fe`.
3237

33-
How to configure GitLab.
34-
========================
38+
39+
How to configure GitLab
40+
=======================
3541

3642
This container uses the official Omnibus GitLab distribution, so all configuration is done in the unique configuration file `/etc/gitlab/gitlab.rb`.
3743

38-
To access GitLab configuration, you can start a new container using the shared data volume container:
44+
To access GitLab configuration, you can start an interactive command line in a new container using the shared data volume container, you will be able to browse the 3 directories and use your text editor:
3945

40-
docker run -ti --rm --volumes-from gitlab_data ubuntu vi /etc/gitlab/gitlab.rb
46+
```bash
47+
docker run -ti -e TERM=linux --rm --volumes-from gitlab_data ubuntu
48+
vi /etc/gitlab/gitlab.rb
49+
```
4150

4251
**Note** that GitLab will reconfigure itself **at each container start.** You will need to restart the container to reconfigure your GitLab.
4352

44-
You can find all available options in [GitLab documentation](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#configuration).
53+
You can find all available options in [Omnibus GitLab documentation](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#configuration).

0 commit comments

Comments
 (0)