README: moved Upgrade instructions to bottom of the README

This commit is contained in:
Sameer Naik 2013-12-17 19:41:54 +05:30
parent bb2aca04e3
commit a3591b128e

View File

@ -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