GitLab インストール (8.16.6)
方針
CentOS 7 にインストール。 通常のApache はそのままにしておき、GitLabは ポート 10080 で運用する前提。
ダウンロード
インストール
$ sudo yum install gitlab-ce-8.16.6-ce.0.el7.x86_64.rpm
読み込んだプラグイン:fastestmirror, langpacks
Repository google-chrome is listed more than once in the configuration
gitlab-ce-8.16.6-ce.0.el7.x86_64.rpm を調べています: gitlab-ce-8.16.6-ce.0.el7.x86_64
gitlab-ce-8.16.6-ce.0.el7.x86_64.rpm をインストール済みとして設定しています
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ gitlab-ce.x86_64 0:8.16.6-ce.0.el7 を インストール
--> 依存性解決を終了しました。
adobe-linux-x86_64 | 951 B 00:00:00
base/7/x86_64 | 3.6 kB 00:00:00
extras/7/x86_64 | 3.4 kB 00:00:00
extras/7/x86_64/primary_db | 122 kB 00:00:00
google-chrome | 951 B 00:00:00
google-chrome/primary | 2.0 kB 00:00:00
updates/7/x86_64 | 3.4 kB 00:00:00
updates/7/x86_64/primary_db | 2.9 MB 00:00:06
依存性を解決しました
===========================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
===========================================================================================================================
インストール中:
gitlab-ce x86_64 8.16.6-ce.0.el7 /gitlab-ce-8.16.6-ce.0.el7.x86_64 767 M
トランザクションの要約
===========================================================================================================================
インストール 1 パッケージ
合計容量: 767 M
インストール容量: 767 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : gitlab-ce-8.16.6-ce.0.el7.x86_64 1/1
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,*****,,,,,,,,,.
,,,,,,****,,,,,,
.,,,***,,,,
*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ ¥
/ /_/ / / /_/ /___/ /_/ / /_/ /
¥____/_/¥__/_____/¥__,_/_.___/
gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:
sudo gitlab-ctl reconfigure
gitlab: GitLab should be reachable at http://サーバ名
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:
gitlab: GitLab now ships with a newer version of PostgreSQL (9.6.1), and will be used
gitlab: as the default in the next major release. To upgrade, RUN THE FOLLOWING COMMANDS:
sudo gitlab-ctl pg-upgrade
gitlab: For more details, please see:
gitlab: https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server
gitlab:
It looks like GitLab has not been configured yet; skipping the upgrade script.
検証中 : gitlab-ce-8.16.6-ce.0.el7.x86_64 1/1
インストール:
gitlab-ce.x86_64 0:8.16.6-ce.0.el7
完了しました!
設定
$ sudo vi /etc/gitlab/gitlab.rb
#external_url 'http://サーバ名' external_url 'http://サーバ名:10080'
# nginx['redirect_http_to_https_port'] = 80 nginx['redirect_http_to_https_port'] = 10080
# mattermost_nginx['redirect_http_to_https_port'] = 80 mattermost_nginx['redirect_http_to_https_port'] = 10080
# pages_nginx['redirect_http_to_https_port'] = 80 pages_nginx['redirect_http_to_https_port'] = 10080
$ sudo gitlab-ctl reconfigure Starting Chef Client, version 12.12.15 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - gitlab (0.0.1) - runit (0.14.2) - package (0.0.0) Installing Cookbook Gems: (中略)