2023/05/29

Ubuntu 22.04 LTS Install GitLab Server EE

GitLab Server有兩個版本,CE(社群版)和EE(企業版)
下方命令是以EE版本為主,如果要改成CE版本則將gitlab-ee改為gitlab-ce即可
版本差異在於EE會多新增比較多的功能,兩者核心是一樣的
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
sudo apt-get install gitlab-ee -y
sudo apt-get remove gitlab-ee -y

# 修改配置檔案
vim /etc/gitlab/gitlab.rb

# 配置及啟動GitLab
sudo gitlab-ctl reconfigure
sudo cat /etc/gitlab/initial_root_password



參考資料:
https://about.gitlab.com/install/#ubuntu