Create your private github using gitlab on CentOS RHEL

Overview

Gitlab is a self Hosted Git Management application. You can create projects and repositories, manage access and do code review just like github. It is based on Ruby on Rails and has a free and open-source license (MIT). Source http://gitlab.org/

Create your private github using gitlab on CentOS RHEL

Enable repo forge

For 64 bit machine

For 32 bit machine

Next enable epel

Click here to enable epel repository.

Install the prerequisites

Install ruby

Install the required gems

Add user git and clone gitlab-shell

Checkout to the latest version

Copy the sample config file and change localhost to your hostname in the config file.

Change to gitlab-shell directory and execute the install script

Start redis and mysql server

Create the database and user for gitlab

Clone gitlab

Copy the sample file and change localhost to hostname(FQDN)

Change the permissions

Copy the database config file and replace the username, password and database for the created gitlab database.

Install required gems

Copy the init file and make it executable

Add user and email address used by the git user to send notifications from and start gitlab.

Download the conf file for nginx and place the ip address and FQDN

Enable all the services to start across reboots and restart nginx

gitlab04 300x176 Create your private github using gitlab on CentOS RHEL

gitlab03 300x176 Create your private github using gitlab on CentOS RHEL