Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- [Amazon Web Services (AWS) Remote Backups](#amazon-web-services-aws-remote-backups)
- [Rake Tasks](#rake-tasks)
- [Import Repositories](#import-repositories)
- [Options to run commands](#options-to-run-commands)
- [Upgrading](#upgrading)
- [Shell Access](#shell-access)
- [References](#references)
Expand Down Expand Up @@ -1062,6 +1063,30 @@ Watch the logs and your repositories should be available into your new gitlab co

See [Rake Tasks](#rake-tasks) for more information on executing rake tasks.

## Options to run commands

This documentation often use [OPTIONS] placeholder in `docker run` commands (to create backups, import bare repositories...).

Considering the Gitlab instance has been configured with `docker-compose` method of [Quick Start](#quick-start) and that the Gitlab, Redis and Postgresql containers are called *gitlab_gitlab_1*, *gitlab_redis_1* and *gitlab_postgresql_1* respectively, here is the configuration to replace [OPTIONS] placeholder:

```bash
--link gitlab_redis_1:redisio --link gitlab_postgresql_1:postgresql -e "GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string" -v "/srv/docker/gitlab/gitlab:/home/git/data"
```

> **Notice**
>
> Before executing any `docker run` command, stop the running Gitlab container. For instance, to import repositories:
>
> ```bash
> docker stop gitlab_gitlab_1
> docker run --name gitlab -it --rm \
--link gitlab_redis_1:redisio --link gitlab_postgresql_1:postgresql \
-e "GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string" \
-v "/srv/docker/gitlab/gitlab:/home/git/data" \
sameersbn/gitlab:8.7.5 app:rake gitlab:import:repos
> docker start gitlab_gitlab_1
> ```

## Upgrading

> **Important Notice**
Expand Down