gitlabをCommunityからEnterprise Editionへ変更する方法
ここに書いていますが、単純すぎて忘れそうなので書いておきます
https://docs.gitlab.com/omnibus/update/index.html#update-community-edition-to-enterprise-edition
同一バージョンではないと出来ませんので注意が必要です。
1.現在運用しているGitLabのバージョンをチェックします
wataru@gitlab:~$ sudo apt-cache policy gitlab-ce | grep Installed
Installed: 14.1.3-ce.0
今回は最新バージョンにしました
2.gitlab-eeのaptリポジトリを追加…
wataru@gitlab:~$ curl -s “https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh” | sudo bash
gitlab-eeなのが注意です。ceだとインストールできませんw
3.gitlab-eeパッケージのインストール
※ gitlab-ceパッケージは自動的にアンインストールされます
とりあえず、リポジトリを更新したので最新化
wataru@gitlab:~$ sudo apt-get update
gitlab-ceのインストール
例は、最新バージョンの場合。
バージョン指定の場合はインストールバージョンを指定してインストールしてください
書式例 : apt-get install gitlab-ee=13.12.10-ce.0
wataru@gitlab:~$ sudo apt-get install gitlab-ee
…
Upgrade complete! If your GitLab server is misbehaving try running
wataru@gitlab:~$ sudo apt-cache policy gitlab-ee | grep Installed
Installed: 14.1.3-ee.0
バージョンが変わっていることを確認
4.CEに戻せないようにリポジトリを削除
sudo rm /etc/apt/sources.list.d/gitlab_gitlab-ce.list
5.とりあえず、設定ファイルの再更新
wataru@gitlab:~$ sudo gitlab-ctl reconfigure
…
gitlab Reconfigured!
6.ついでにバックアップ
wataru@gitlab:~$ sudo gitlab-backup create
単純すぎるのと公式文章がこちょこちょって程度しか書いていないのでメモです