How to install Gitlab-ee or ce on centos 7

Howto Feb 28, 2019

Gitlab

GitLab is a Open source tool with a web based interface, Git-repository, wiki, issue-tracking and CI/CD pipeline for managing your DevOps lifecyle.This post shows how to deploy gitlab on a Centos 7 server.

installing the dependencies

We need to install the necessary dependencies below for Gitlab to be installed.

yum install -y curl policycoreutils-python openssh-server openssh-clients

installing and enabling postfix

postfix needs to be installed and enabled for messaging

yum install -y postfix
systemctl start postfix
systemctl enable postfix

installing the Gitlab Enterprise repo

The repo for Gitlab Enterprise version can be accessed from below

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

OR

installing the Gitlab Community repo

The repo for Gitlab Community version can be accessed from below

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

installing the Gitlab

Gitlab can be simply installed from repo with the command below.

community version

yum install -y gitlab-ce

enterprise version

yum install -y gitlab-ee

Configuring the installation

On initial installation we need to reconfigure Gitlab, this is done with the command below and any changes in Gitlab.rb can be reconfigured as well with the command below.

gitlab-ctl reconfigure
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
#