LoginSignup
1
1

More than 5 years have passed since last update.

AWSに gitlab8 CE 構築

Last updated at Posted at 2015-12-16

まずAWSだとスペック制限うけそうだったので手動でインストールする。
必要な依存関係モジュールはAWSの場合すでに全て入っているようなので割愛

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce-8.0.3-ce.1.el6.x86_64
sudo gitlab-ctl reconfigure

gitlabはnginxを内包してインストールされる。
起動はサービスで登録されているわけではないみたい。

以下が起動ファイルの設定。sysctl,initにあるからここで読んでいるのではないかと。

[root@git gitlab]# cd /etc/
[root@git etc]# find . | grep gitlab
./yum.repos.d/gitlab_gitlab-ce.repo
./sysctl.d/90-omnibus-gitlab.conf
./init/gitlab-runsvdir.conf
./gitlab
./gitlab/gitlab-secrets.json
./gitlab/gitlab.rb

おそらくデータは以下のフォルダ
/var/opt/gitlab/

nginxのコンフィグはおそらくこちら
/var/opt/gitlab/nginx/conf/gitlab-http.conf

※Authかけたい時等
auth_basic "Restricted";
auth_basic_user_file /opt/gitlab/.htpasswd;

location / {
## Serve static files from defined root folder.
## @gitlab is a named location for the upstream fallback, see below.
auth_basic "Restricted";
auth_basic_user_file /opt/gitlab/.htpasswd;
try_files $uri $uri/index.html $uri.html @gitlab;
}

エラーがでる。NotFound系結果はシンボリックリンクデータ部に使用しているとだめらしい。これのせいで悩んだ・・・

おれおれ証明書をOKにする場合

git config --global http.sslverify false

無事完成です。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1