GitLab is a web-based version control software based on git and adds additional features such as branch management bug tracking and continuous integration. It is developed in Ruby.
GitLab Community Edition (CE) is being developed open-source and uses the MIT-License. Since August 2013 GitLab Inc. is providing the enterprise-grade Enterprise Edition (EE) which includes more features than the Community Edition.
GitLab.com is the Software as a Service alternative and runs itself on a Enterprise Edition. It is free of charge and supports private and public repositories.
This is a short summary of the GitLab guide on Install a GitLab CE Omnibus package.
In order to install the GitLab Community Edition on your server, you should read the requirements page. To make it brief, the recommended requirements are:
The recommended method is to install the Omnibus package, which is fast to install. It contains GitLab and all its dependencies (Ruby, PostgreSQL, Redis, Nginx, Unicorn, etc.). For other methods check out the GitLab's installation options
With Ubuntu 16.04 as the recommended OS, this guide describes the installation steps on Debian based distributions. For CentOS, RHEL, Oracle Linux and Scientific Linux, please refer to the original guides:
Ubuntu, Debian, Raspberrian
Install necessary dependencies. If you use Postfix select 'Internet Site' during setup
sudo apt-get install curl openssh-server ca-certificates postfix apt-transport-https curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
Add the Gitlab package server and install the package
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash sudo apt-get install gitlab-ce
If you do not want to install the repository through a piped script, download the package manually and install it using
dpkg -i gitlab-ce_<version>.deb
Now configure and start GitLab
sudo gitlab-ctl reconfigure
Finally browse to the hostname and login. At first you will be redirected to provide a password for the initial administrator account. After that you're able to login in. The default administrator account username is root.