mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
README: moved Upgrade instructions to bottom of the README
This commit is contained in:
parent
bb2aca04e3
commit
a3591b128e
68
README.md
68
README.md
@ -119,40 +119,6 @@ docker run -d \
|
||||
-v /opt/gitlab/.ssh:/home/git/.ssh sameersbn/gitlab
|
||||
```
|
||||
|
||||
## Upgrading
|
||||
|
||||
If you upgrading from previous version, please make sure you run the container with **migrate** command.
|
||||
|
||||
**Step 1: Stop the currently running image**
|
||||
|
||||
```bash
|
||||
docker stop <container-id>
|
||||
```
|
||||
|
||||
**Step 2: Backup the database in case something goes wrong.**
|
||||
|
||||
```bash
|
||||
mysqldump -h <mysql-server-ip> -ugitlab -p --add-drop-table gitlabhq_production > gitlab.sql
|
||||
```
|
||||
|
||||
**Step 3: Update the docker image.**
|
||||
|
||||
```bash
|
||||
docker pull sameersbn/gitlab
|
||||
```
|
||||
|
||||
**Step 4: Migrate the database.**
|
||||
|
||||
```bash
|
||||
docker run -i -t [OPTIONS] sameersbn/gitlab migrate
|
||||
```
|
||||
|
||||
**Step 5: Start the image**
|
||||
|
||||
```bash
|
||||
docker run -i -d [OPTIONS] sameersbn/gitlab
|
||||
```
|
||||
|
||||
### Other options
|
||||
Below is the complete list of parameters that can be set using environment variables.
|
||||
|
||||
@ -232,6 +198,40 @@ docker run -d -h git.local.host \
|
||||
sameersbn/gitlab
|
||||
```
|
||||
|
||||
## Upgrading
|
||||
|
||||
If you upgrading from previous version, please make sure you run the container with **migrate** command.
|
||||
|
||||
**Step 1: Stop the currently running image**
|
||||
|
||||
```bash
|
||||
docker stop <container-id>
|
||||
```
|
||||
|
||||
**Step 2: Backup the database in case something goes wrong.**
|
||||
|
||||
```bash
|
||||
mysqldump -h <mysql-server-ip> -ugitlab -p --add-drop-table gitlabhq_production > gitlab.sql
|
||||
```
|
||||
|
||||
**Step 3: Update the docker image.**
|
||||
|
||||
```bash
|
||||
docker pull sameersbn/gitlab
|
||||
```
|
||||
|
||||
**Step 4: Migrate the database.**
|
||||
|
||||
```bash
|
||||
docker run -i -t [OPTIONS] sameersbn/gitlab migrate
|
||||
```
|
||||
|
||||
**Step 5: Start the image**
|
||||
|
||||
```bash
|
||||
docker run -i -d [OPTIONS] sameersbn/gitlab
|
||||
```
|
||||
|
||||
## References
|
||||
* https://github.com/gitlabhq/gitlabhq
|
||||
* https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user