From a3591b128ec7a2f9c022ad290928b55fb8cdfd53 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Tue, 17 Dec 2013 19:41:54 +0530 Subject: [PATCH] README: moved Upgrade instructions to bottom of the README --- README.md | 68 +++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index f3d97dd8..ce09ace0 100644 --- a/README.md +++ b/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 -``` - -**Step 2: Backup the database in case something goes wrong.** - -```bash -mysqldump -h -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 +``` + +**Step 2: Backup the database in case something goes wrong.** + +```bash +mysqldump -h -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