GitLab is a web-based Git repository manager with wiki and issue tracking features which provides a great way to manage your git project repositories from a single machine.
The software was written by Dmitriy Zaporozhets and Valery Sizov from Ukraine. The code is written in Ruby. Later, some parts have been rewritten in Go. It is used by organisations such as IBM, Sony, NASA, CERN, and SpaceX.
- Ubuntu 14.04 or later/Debian 7, 8 , 9
- 4GB RAM
- 2 Cores
- Mail Ports (Optional) And Web Server Ports
SSH into your server or open a Command Line Interface and follow the instructions given below.
First we need to refresh the local package for the latest versions. Enter the commands given below.
sudo apt-get update
The below command will install the dependencies.
Note: It is optional to install Postfix. You can use external mail servers like Google Mail or free alternatives like Zoho Mail.
sudo apt-get install ca-certificates curl openssh-server postfix
For the installation of Postfix, select Internet Site when prompted. Then you will be prompted to enter your server’s domain name or IP address to configure how the system will send or receive mails.
3. GitLab Installation
Enter the following command to add the GitLab package repository.
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
In the next step, CHANGE `http://gitlab.flaunt7.com` to the URL/IP at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL/IP.
sudo EXTERNAL_URL="http://gitlab.flaunt7.com" apt-get install gitlab-e
Installation will take a few minutes…
Note: You must have a registered domain name and must have pointed the A record of the URL provided to the server’s IP address.
4. Browsing and Login
Open your favorite browser and browse to the URL you chose during installation.
On the first visit you will be prompted to reset the password. After resetting the password you can login.
The Default Username is root.
Congratulations! You have successfully installed GitLab on your server.