Created
October 1, 2015 02:42
-
-
Save tnir/b818a327e2e3bb1e51f7 to your computer and use it in GitHub Desktop.
GitLab 7.xからGitLab 8.0にアップデートする方法 (GitLab CIあり編) ref: http://qiita.com/tnir/items/15e4ce4e091e93f5cee3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum update gitlab-ce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo gitlab-ctl stop ci-unicorn | |
$ sudo gitlab-ctl stop ci-sidekiq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo gitlab-ci-rake backup:show_secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo gitlab-ci-rake backup:create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mv /var/opt/gitlab/ci-backups/*_gitlab_ci_backup.tar /var/opt/gitlab/backups/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo gitlab-rake ci:migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will remove all CI related data and restore it from the provided backup. | |
Do you want to continue (yes/no)? yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo gitlab-ctl hup unicorn | |
$ sudo gitlab-ctl restart sidekiq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unpacking backup ... done | |
Restoring database ... | |
Restoring PostgreSQL database gitlabhq_production ... | |
SET | |
SET | |
DROP INDEX | |
DROP INDEX | |
SET | |
CREATE TABLE | |
CREATE SEQUENCE | |
ALTER SEQUENCE | |
ALTER TABLE | |
CREATE INDEX | |
done | |
Restoring builds ... | |
done | |
Migrating tags ... | |
Inserting tags... | |
Deleting old taggings... | |
Inserting taggings... | |
Resetting counters... | |
done | |
Migrating services ... | |
done | |
Deleting tmp directories ... done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment