GitLab

update create

想定以上に簡単に構築できました。
Install
CPU&Memory

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt install gitlab-ce

インストールメモ

※CEとEEの違いに注意(URL1),(URL2)
EXTERNAL_URLはインストール後でも設定可能(/etc/gitlab/gitlab.rb)。
Postfixは、sendmailコマンド(OS MTA)の仕組みを使用しない(外部SMTPを利用する)場合は不要。
SMTP settings

  • gitlab-ce: Community Edition
  • gitlab-ee: Enterprise Edition
  • EE Starter(ees): $39
  • EE Premium(eep): $199
  • EE Ultimate(eeu): $999

設定

URL

sudo gitlab-ctl stop unicorn
sudo gitlab-ctl stop sidekiq
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
sudo gitlab-ctl restart unicorn

登録関連

  • 管理者でログイン
  • 左上設定ボタン(Admin Area)
  • Settings
  • Sign-up restrictions
    初期設定では"Sign-up enable": 適当なメールアドレスでも登録可能。
    "Send confirmation email on sign-ups": 確認用メールがとび、token付きのリンクを押すことで登録になる。
    "Sign-up enable"を外すと登録機能がなくなり、管理者が登録する形となる。
  • estimate, spend
/estimate 1d 3h
/spend 2h 10m

CI

sudo gitlab-ctl reconfigure
sudo gitlab-runner stop
sudo gitlab-runner start
sudo gitlab-runner list

Document

htmlは使わない方が良い見たい。
Javadocとかいい感じにならないかな?

Artifact

JobとPipelineの情報を削除するとグラフからは消える。
https://gitlab.com/JonathonReinhart/gitlab-artifact-cleanup