1. Install gitlab-ee
1.1 Install dependency
sudo yum install -y curl policycoreutils-python openssh-server perl
# Enable OpenSSH server daemon if not enabled: sudo systemctl status sshd
sudo systemctl enable sshd
sudo systemctl start sshd
# Check if opening the firewall is needed with: sudo systemctl status firewalld
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalldsudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix1.2 Add the GitLab package repository and install the packagecurl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bashsudo EXTERNAL_URL="https://gitlab.yourdomain.com" yum install -y gitlab-ee # List available versions: sudo yum --showduplicate list # Specify version: sudo yum linstall gitlab-ee-16.1.4-ee.0.el7.x86_64 # Pin the version to limit auto-updates: yum versionlock gitlab-ee*2. Change gitlab user by edit /etc/gitlab/gitlab.rbuser['username'] = "git" user['group'] = "grp_git" user['uid'] = 1372500825 user['gid'] = 13725008253. do a reconfigure#gitlab-ctl reconfigure
No comments:
Post a Comment