Installing GitLab on CentOS 6/7

GitLab is a Git repository management system that allows you to analyze , track and record errors, set testing, deployment, documentation, etc. tasks.

Preparing for installation

In the context of this manual, is assumed that the installation will take place on a “clean” server. For GitLab to work correctly, you will need:

  • 6/7;
  • Postfix;
  • Open ;
  • Ruby;
  • Go;
  • Nodejs;
  • Database (PostgreSQL or );
  • Redis;
  • .

Installation

There are 3 ways to install GitLab:

  • Package installation;
  • Installation from a repository;
  • Building and installing from source.

The recommended option by the developers is to install GitLab from the repository. To install GitLab from a repository, follow these steps:

Install the required dependencies:

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

This command will install the following packages:

cURL, OpenSSH-Server и PolicyCoreUtils-Python 

After installing these packages, you need to start and include OpenSSH-Server in startup. To do this, enter the following commands one by one:

We include OpenSSH-Server in autoload:

sudo systemctl enable sshd

Start OpenSSH-Server:

sudo systemctl start sshd

Add new rules to the Firewall and restart it:

sudo firewall-cmd --permanent --add-service=http

sudo firewall-cmd --permanent --add-service=https

sudo systemctl reload firewalld

Next, install Postfix to send notifications. To do this, you need to run the following commands:

Install Postfix:

sudo yum install postfix

Add Postfix to autoload:

sudo systemctl enable postfix

Start Postfix:

sudo systemctl start postfix

During the installation process, Postfix may open a configuration screen. You need to select “Internet-site” and press Enter. For “mail name” you need to specify the external of your server, then press Enter. If additional screens appear during installation, just keep pressing Enter to set the defaults.

Let’s add a repository to the system:

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

Next, you need to specify the external address of the system and install GitLab. At this stage, the installer script will download about 700 MB, so you need to wait a bit. Also, the address “ https://gitlab.example.com ” must be replaced with your own:

sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee

Open the address you set earlier in the browser. On your first visit, you will be redirected to change the administrator password. After changing your password, you will be taken to the login page. Use the root login and the new password to log in to the system.

 

Welcome to the world of DomainRooster, where roosters (and hens) rule the roost! We're a one-stop shop for all your entrepreneurial needs, bringing together domain names and website hosting, and all the tools you need to bring your ideas to life. With our help, you'll soar to new heights and hatch great success. Think of us as your trusty sidekick, always there to lend a wing and help you navigate the sometimes-complex world of domain names and web hosting. Our team of roosters are experts in their fields and are always on hand to answer any questions and provide guidance. So why wait? Sign up today and join the ranks of the world's greatest entrepreneurs. With DomainRooster, the sky's the limit! And remember, as the saying goes, "Successful people do what unsuccessful people are not willing to do." So don't be afraid to take that leap of faith - DomainRooster is here to help you reach for the stars. Caw on!