How to Install Gitlab OmniBus and Gitlab-CE 12.0.3 on CentOS 7.6
Installation of GitLab OmniBus And Gitlab-CE 12.0.3 On CentOs 7.6
OmniBus Packages:
curl policycoreutils-python openssh-server postfix
GitLab Package Repository Command:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
Installation Procedure
Install the omnibus packages in order to run the GItlab-CE 12.0.3 by executing the following command.And then enable and start the service of both sshd and postfix .
[root@localhost ~]# yum install curl policycoreutils-python openssh-server postfix -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.123host.vn
* extras: mirror.ehost.vn
* updates: mirrors.123host.vn
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 205 kB 00:00:01
.
.
.
.
.
Package curl-7.29.0-51.el7.x86_64 already installed and latest version
Package policycoreutils-python-2.5-29.el7_6.1.x86_64 already installed and latest version
Package openssh-server-7.4p1-16.el7.x86_64 already installed and latest version
Package 2:postfix-2.10.1-7.el7.x86_64 already installed and latest version
Nothing to do
Add the Gitlab-CE 12.0.3 repository by executing the following command
[root@localhost ~]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6705 0 6705 0 0 2694 0 --:--:-- 0:00:02 --:--:-- 2693
Detected operating system as centos/7.
.
.
.
.
Fingerprint: 1a4c 919d b987 d435 9396 38b9 1421 9a96 e15e 78f4
From : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
Generating yum cache for gitlab_gitlab-ce-source...
The repository is setup! You can now install packages.
Now Install the Gitlab-CE 12.0.3 Version
[root@localhost ~]# yum install gitlab-ce -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.123host.vn
* extras: mirror.ehost.vn
* updates: mirrors.123host.vn
Resolving Dependencies
--> Running transaction check
.
.
.
.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
.
.
.
.
Verifying : gitlab-ce-12.0.3-ce.0.el7.x86_64 1/1
Installed:
gitlab-ce.x86_64 0:12.0.3-ce.0.el7
Complete!
Check the service status of ssh and postfix as follows
[root@localhost ~]# systemctl status sshd postfix
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-03-09 15:36:44 IST; 4 months 13 days ago
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2019-03-09 15:36:47 IST; 4 months 13 days ago
Reconfigure the Gitlab to power the OmniBus GitLab
[root@localhost ~]# gitlab-ctl reconfigure
Starting Chef Client, version 13.6.4
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- postgresql (0.1.0)
- redis (0.1.0)
- registry (0.1.0)
- gitlab (0.0.1)
.
.
.
.
.
.
Recipe: <Dynamically Defined Resource>
* service[alertmanager] action restart
- restart service service[alertmanager]
* service[postgres-exporter] action restart
- restart service service[postgres-exporter]
* service[grafana] action restart
- restart service service[grafana]
Running handlers:
Running handlers complete
Chef Client finished, 510/1343 resources updated in 04 minutes 15 seconds
Gitlab Reconfigured!
Open your Browser and enter the IP address of your Gitlab machine to access the Gitlab
With this, Installation of Gitlab Omnibus and Gitlab-CE 12.0.3 version is successful and comes to end.
Q
What is the configuration file of Gitlab?
A
The configuration file of GitLab is /etc/gitlab/gitlab.rb
Q
What is Gitlab used for?
A
Usage of gitlab comes to play in managing the repositories where it allows us to decide whether the repository or projects has to be in private or public .The user has all control over the repositories.
Q
What is Gitlab OmniBus?
A
Gitlab omniBus is a way where it contains package of different services and different tools which are very essential to function or run the GitLab normally.
Q
What is the use of Postfix to install the gitlab?
A
Postfix handles the delivery of email messages on a server which is the default mail server in almost Linux Distributions
Q
What is the use of policycoreutils-python In Gitlab OmniBus package?
A
policycoreutils-python Usage in Gitlab Omnibus package contains management tools which manage the SELinux Environment.