Gitlab Installation on Ubuntu (14.04, 16.04, 18.04 Version)
GitLab is the Web UI or an interface for Git. Gitlab has two versions: Community Edition and Enterprise Edition. GitLab Community Edition is an open source having a MIT Expat license and GitLab Enterprise Edition is built on the top of Community Edition. It uses the same core, but it adds additional features and functionality which enhances that. This is a proprietary license. We are currently using the Gitlab Community edition. So, the Gitlab installation on Ubuntu in this document is for the Gitlab Community edition only.
Procedure to install Gitlab on Ubuntu (14.04, 16.04, 18.04 version):
- Install Gitlab dependencies:
sudo apt-get install -y curl openssh-server ca-certificates
- Add the GitLab package repository:
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
- Install the Gitlab package:
apt-get install gitlab-ce
- Access the Gitlab UI: Now you can access GitLab through the IP address of the server on which you install Gitlab
- Access Gitlab via domain name: Edit GitLab config file (/etc/gitlab/gitlab.rb) and add the domain name (e.g git.tudip.com) at external_url configuration line.