自宅で導入テストした際の記録
環境
- CentOS release 6.5 (Final)
- ※VirtualBox上
OS 設定
- IP:
192.168.0.10
- Firewall: 検証用なので、今のところ無し
以下、URL は適当に読み替えてください。
インストール
- gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm
公式URL
- https://www.gitlab.com/downloads/
- https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#centos-6-5
インストール手順
- yum install -y openssh-server postfix
- wget https://downloads-packages.s3.amazonaws.com/centos-6.5/gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm
- sudo rpm -i ./gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm
- gitlab-ctl reconfigure
初期設定
応急処置的な手順
1 sudo service iptables stop
ウェブ画面から
http://192.168.0.10/ にアクセスしてログイン
- User:
admin@local.host
- Password:
5iveL!fe
あとはお好みでユーザ作成したり
設定変更
ホスト名修正
ここで、ホスト設定がおかしいことに気がつく
project_clone の URL が http://localhost/heignamerican/... となっていて超不便。
とりあえず IP で応急処置
~$ cat /etc/gitlab/gitlab.rb
external_url "http://192.168.0.10"
~$ gitlab-ctl reconfigure
今後
- ssh 対応
- CI 連携
- マージリクエスト、自動テスト連携させないと不便そう
- redmine とかと連携
- これは別インスタンスでやった方がよさげ?
- iptables ちゃんとする