GitLab CE (Community Edition) is an open-source application used to host Git repositories with additional features like issue tracking.GitLab CE is using your own infrastructure to host repositories which provide flexibility in deploying as an internal repository.The GitLab project makes it pretty straightforward to set up a GitLab repository on your own server with an easy installation mechanism. In this tutorial, we will cover how to install and configure GitLab on a CentOS 7 server.

Install Dependencies

Let’s start with installing the needed dependencies:

yum install curl postfix policycoreutils-python openssh-server

The most important dependency is the “Postfix” which is provided by the official CentOS repository and you can install it using YUM with the following command:
After the installation process is finished, execute the following commands to start Postfix service and make it run at startup:

systemctl start postfix
systemctl enable postfix

Add the GitLab official package repository

You can easily add the GitLab official repository using “curl” command like below:

curl | sudo bash

Install GitLab Community Edition

Now that you have all the needed dependencies and you have successfully added the GitLab repository you can go ahead and install GitLab Community Edition with the command below:

yum install gitlab-ce

Initial Configuration

Execute the following command to start GitLab initial configuration process, it may take a few minutes (This is a completely automated process so you will not have to answer any prompt):

gitlab-ctl reconfigure

After the process is finished, you can check your Domain or public IP address using any browsers. 

Was this answer helpful? 0 Users Found This Useful (1 Votes)