Skip to content

GitLabΒΆ

Install gitlab-ce over CentOSΒΆ

Install and configure the necessary dependenciesΒΆ

sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

Add the GitLab package repository and install the packageΒΆ

curl <https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh> | sudo bash
sudo EXTERNAL_URL="<https://gitlab.example.com>" yum install -y gitlab-ce

Run GitlabΒΆ

sudo gitlab-ctl reconfigure
sudo gitlab-ctl start

Note: if you want to setup git over the DNS follow the link

ConfigurationΒΆ

reconfigure gitlab settingΒΆ

sudo gitlab-ctl reconfigure

Restart user passwordΒΆ

gitlab-rake "gitlab:password:reset"

Initiate gitlab runnerΒΆ

 gitlab-runner start
 gitlab-runner register