Install and Configure Own Local GitLab server on Debian 8

Local GitLab server
Local GitLab server

Steps to Install & Configure Local GitLab

Benefits Of Local GitLab Server

  • Gitlab is a software that works the same as Github.
  • Gitlab is a little different than Github, you can install your own git server using GitLab application but Github would not provide such an option.
  • On GitHub, you need to pay for private repositories so with help of GitLab, you can create your own private repository without paying single penny. The only thing you need to do is install and configure it on your own server.
  • Once you install GitLab, you will be able to create a private repository and you can make GitLab more secure by allowing panel access in your internal network only.

In this article, We will provide you steps to install and configure the Local Gitlab server on Debian 8.

Before starting the installation process make sure our server is compatible with the application.

Below are the details of Server specifications and Gitlab dependency packages,

Server Specifications

  •  OS: Linux Debian 8 Jessie
  • CPU: 2 Core
  • RAM: 1GB
  • Storage: 20GB

Gitlab Dependency Packages

  • curl, ca-certificates
  • postfix
  • gitlab-ce

gitlab-ce is basically a GitLab community edition which provides us to make max “10 private repositories”.

If you want a more repository then you need to buy an enterprise version that provides you more repository’s as well as support.

Follow the below link for the enterprise edition.

Let’s start the local Gitlab server installation and configuration.

Install the Dependency Packages

First, we are going to install GitLab dependency packages with the help of apt-get command before installing any package on Debian update your repository,

$ apt-get update

$ apt-get install curl ca-certificates
Above are the basic dependency package of GitLab server.
 
Now we are installing a “postfix mail server” which we are using to send emails from the server. so follow the below steps to install postfix.
you can also use the default Sendmail server for mailing.
$ apt-get install mailutils postfix

 Install gitlab-ce

Before start installing gitlab-ce, we need to add gitlab-ce repository under the apt-get source list.

Run below command directly on the terminal which will help you to add GitLab repo and after adding repo install gitlab-ce with apt-get.

$ curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash

$ apt-get install gitlab-ce

Configure and start GitLab

To configure and start GitLab, run the following command,

$ gitlab-ctl reconfigure
The above command will take some time to configure but help to automatically configure everything for you like Nginx, postfix, etc.
 
Now go to your browser and hit the server IP,
 
The above link will open the GitLab page and it will prompt you to set your password for login.
 
After setting a password create a new account for accessing GitLab.
 
Now login with the new username and password and it will provide you panel to create private projects.
 
you are able to create only 10 Private projects in Community edition.
 
That’s it our GitLab installation and configuration steps are completed. 
 
I hope you like the post if you have any kind of queries regarding GitLab installation post. Please comment queries and suggestions under the comment box.
 
Thank You 🙂
Local GitLab Server

Prashant

Welcome to Linuxgrow. I'm Prashant, a tech-blogger from Mumbai, India. I started Linuxgrow as a passion and to share my knowledge about technologies. Here at Linuxgrow, I write about Linux technologies, Aws Cloud, Wordpress blogging and scripting knowledge. You can read more about me at About us page. Thank You :)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Facebook