How to Install Gitlab-CE on RHEL7.6
- 00:25 cat /etc/os-release
- 00:37 yum install curl policycoreutils openssh-server openssh-clients
- 01:09 systemctl enable sshd
- 01:18 systemctl start sshd
- 01:26 yum install postfix
- 01:46 systemctl enable postfix
- 02:06 firewall-cmd --permanent --add-service=https
- 02:30 systemctl reload firewalld
- 02:40 curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
- 03:04 yum install gitlab-ce
- 03:44 gitlab-ctl reconfigure
- 04:25 gitlab-ctl start
How to Install Gitlab-CE on RHEL7.6
Introduction:
GitLab is a web-based repository manager used for team collaboration. We can create, edit new projects and merge finished code into the existing projects with Gitlab. In this tutorial we are going to see the Method to install Gitlab-CE on RHEL7.6
Installation Process:
To check the installed version of OS
[root@linuxhelp ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
Install the required dependencies packages
[root@linuxhelp ~]# yum install curl policycoreutils openssh-server openssh-clients
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package curl-7.29.0-51.el7.x86_64 already installed and latest version
Package policycoreutils-2.5-29.el7.x86_64 already installed and latest version
Package openssh-server-7.4p1-16.el7.x86_64 already installed and latest version
Package openssh-clients-7.4p1-16.el7.x86_64 already installed and latest version
Nothing to do
After the installation enable and start the service
[root@linuxhelp ~]# systemctl enable sshd
[root@linuxhelp ~]# systemctl start sshd
Then install the postfix MTA for mailing service
[root@linuxhelp ~]# yum install postfix
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-7.el7 will be installed
….
…..
Verifying : 2:postfix-2.10.1-7.el7.x86_64 1/1
Installed:
postfix.x86_64 2:2.10.1-7.el7
Complete!
Now use the below command to enable and start the service
[root@linuxhelp ~]# systemctl enable postfix
[root@linuxhelp ~]# systemctl start postfix
Allow the following service in firewall
[root@linuxhelp ~]# firewall-cmd --permanent --add-service=https
success
reload the firewall service to update the changes
[root@linuxhelp ~]# systemctl reload firewalld
Run the below script to install gitlab repository in your system
[root@linuxhelp ~]# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
Detected operating system as rhel/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=rhel&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
gitlab_gitlab-ce-source/signature | 862 B 00:00:00
Retrieving key from https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
….
….
The repository is setup! You can now install packages.
Now you can install the gitlab-ce using the below command
[root@linuxhelp ~]# yum install gitlab-ce
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:13.3.5-ce.0.el7 will be installed
--> Finished Dependency Resolution
…..
Installing : gitlab-ce-13.3.5-ce.0.el7.x86_64 1/1
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
After the gitlab-ce installation run the below command to start the gitlab configuration
[root@linuxhelp ~]# gitlab-ctl reconfigure
Starting Chef Infra Client, version 15.12.22
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- postgresql (0.1.0)
- redis (0.1.0)
- monitoring (0.1.0)
- package (0.1.0)
- gitlab (0.0.1)
- mattermost (0.1.0)
- gitaly (0.1.0)
- praefect (0.1.0)
…..
….
- change mode from '' to '0700'
* runit_service[grafana] action restart (up to date)
Running handlers:
Running handlers complete
Chef Infra Client finished, 564/1530 resources updated in 07 minutes 24 seconds
gitlab Reconfigured!
After reconfiguration start the gitlab
[root@linuxhelp ~]# gitlab-ctl start
ok: run: alertmanager: (pid 23189) 21s
ok: run: gitaly: (pid 23159) 26s
ok: run: gitlab-exporter: (pid 23145) 27s
ok: run: gitlab-workhorse: (pid 23132) 28s
ok: run: grafana: (pid 23203) 20s
ok: run: logrotate: (pid 22474) 311s
ok: run: nginx: (pid 23355) 3s
ok: run: node-exporter: (pid 23140) 28s
ok: run: postgres-exporter: (pid 23195) 22s
ok: run: postgresql: (pid 22226) 418s
ok: run: prometheus: (pid 23165) 27s
ok: run: puma: (pid 22379) 347s
ok: run: redis: (pid 22062) 436s
ok: run: redis-exporter: (pid 23155) 27s
ok: run: sidekiq: (pid 22399) 336s
Go to Browser where provide IP address of your system
Configure administrator password in this console
Provide user login credentials in the login page
With this, the method to install Gitlab-CE on RHEL7.6 comes to end.
Comments ( 0 )
No comments available