Install and Configure Own Local GitLab server on Debian 8
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,
- OS: Linux Debian 8 Jessie
- CPU: 2 Core
- RAM: 1GB
- Storage: 20GB
Gitlab Dependency Packages
- curl, ca-certificates
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
$ apt-get install mailutils postfix
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