How To Install Gitlab on REDHAT 8.5
To Install Gitlab on REDHAT 8.5
Introduction:
GitLab is a web-based Git repository that comes up with free open and private repositories, issue-following capabilities, and wikis. This is a complete DevOps platform that allows professionals to perform all the tasks in a project—from project planning and source code management to monitoring and security.
Installation Steps:
Step 1: Check the installed version of OS version by using the below command
[root@linuxhelp ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
Step 2: Install the dependency packages by using the below command
[root@linuxhelp ~]# dnf install -y curl policycoreutils openssh-server perl
Updating Subscription Management repositories.
Unable to read consumer identity
AppStream 3.1 MB/s | 3.2 kB 00:00
BaseOS 2.7 MB/s | 2.8 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 10 kB/s | 8.4 kB 00:00
===========================================================
Package Arch Version Repo Size
--------------------------------------------------------------------------------
systemtap-sdt-devel-4.5-3.el8.x86_64
Complete!
Step 3: Enable the sshd Services by using the below command
[root@linuxhelp ~]# systemctl enable sshd
Step 4: Start the sshd Services by using the below command
[root@linuxhelp ~]# systemctl start sshd
Step 5: Add the firewall for http by using the below command
[root@linuxhelp ~]# firewall-cmd --add-service=http --permanent
Success
Step 6: Download the gitlab CE Package by using the below command
[root@linuxhelp ~]# wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm/download.rpm
--2022-05-14 05:43:55-- https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm/download.rpm
2022-05-14 05:44:47 (18.3 MB/s) - ‘gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm’ saved [971743744/971743744]
Step 7: Install the gitlab-ce rpm package by using the below command
[root@linuxhelp ~]# dnf install gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm
Updating Subscription Management repositories.
Unable to read consumer identity
Dependencies resolved.
Installing:
gitlab-ce x86_64 14.4.2-ce.0.el8 @commandline 927 M
===========================================================
Installed size: 2.0 G
Is this ok [y/N]: y
Is this ok [y/N]: y
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
gitlab-ce-14.4.2-ce.0.el8.x86_64
Complete!
Step 8: Reconfigure the gitlab by using the below command
[root@linuxhelp ~]# gitlab-ctl reconfigure
Starting Chef Infra Client, version 15.17.4
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks
Recipe: monitoring::prometheus
* runit_service[prometheus] action restart (up to date)
* execute[reload prometheus] action run
Recipe: monitoring::alertmanager
gitlab Reconfigured!
Step 9: Go to your favorite browser and search your ip address as shown in the below image
Step 10: Login Git as root user as shown in the below image
Step 11: Go to the following path on terminal to get Git default root password by using the below command
[root@linuxhelp ~]# cd /etc/gitlab/
Step 12: List the directory by using the below command
[root@linuxhelp gitlab]# ls
gitlab.rb gitlab-secrets.json initial_root_password trusted-certs
Step 13: Open the following file using Vim Command by using the below command
[root@linuxhelp gitlab]# vim initial_root_password
Step 14: copy the root password as shown in the below image
Step 15: Paste the password on login Console as shown in the below image
By this the Installation of GitLab on REDHAT 8.5 has been Completed.
# gitlab-rails console production
Secured codes.
Improved milestones.
Status availability.
Supports GUI.
Control over the repository.
Snippet supports.