GITLAB-SERVER ON CENTOS 7

GitLab, the software, is a web-based Git repository manager with wiki and issue tracking features. GitLab, the company, offers hosted accounts similar to GitHub, but also allows its software to be used on third-party servers. It is available as an Omnibus package.(Compared to an installation from source, this is faster and less error prone)

Install a Gitlab CE Omnibus package on CentOS 7. Use the following steps:-

1. Install and configure the necessary dependencies.

[nepalisupport@blog~]# yum install curl policycoreutils openssh-server openssh-clients

[nepalisupport@blog~]# systemctl enable sshd

[nepalisupport@blog~]# systemctl start sshd

[nepalisupport@blog~]# yum install postfix

[nepalisupport@blog~]# systemctl enable postfix

[nepalisupport@blog~]# systemctl start postfix

[nepalisupport@blog~]# firewall-cmd --permanent --add-service=http

[nepalisupport@blog~]# systemctl reload firewalld

2. Add the Gitlab package server and install packages,

[nepalisupport@blog~]# curl -sShttps://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh /sudo bash

[nepalisupport@blog~]# yum install gitlab-ce

3. Configure and start Gitlab

[nepalisupport@blog~]# gitlab-ctl reconfigure

4. Now, Browse to the hostname & login,

Eg: 192.168.3.25/gitlab on your browser;

user: root || password: g!tl@b    (you can assign your own password)

You can access a new installation with the login root and password 5iveL!fe, after login you are required to set a unique password.

That’s it. You have sucessfully configure gitlab-ce on your CentOS 7 machine.

~END~

Other useful commands,

[nepalisupport@blog~]# gitlab-ctl start

[nepalisupport@blog~]# gitlab-ctl stop

[nepalisupport@blog~]# gitlab-ctl restart

Troubleshooting

If you encounter “502 error” on your web page, then enter following commands,

[nepalisupport@blog~]# gitlab restart sidekig

[nepalisupport@blog~]# gitlab-ctl hup unicorn

[nepalisupport@blog~]# gitlab-rake gitlab:check

This tutorial is created based on other technical blog and is fully tested on Centos 7. Feel free to comment.

Thank you.

For more reading materials please click here

Advertisements