GitLab: Install and configure

Installing and configure a gitlab server on

For the basic requirements please check the document

Install and configure the necessary dependencies:

giovanni@vm-gittest:~$ sudo apt-get install openssh-server
giovanni@vm-gittest:~$ sudo apt-get install postfix

Download and install debian package for Ubuntu 14.04

giovanni@vm-gittest:~$ wget
giovanni@vm-gittest:~$ sudo dpkg -i gitlab_7.9.0-omnibus.2-1_amd64.deb

We want to run CPU_NUM+1 uinicorn workers editing the file /etc/gitlab/gitlab.rb adding the lines:

unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 3

Re-configure and start GitLab

giovanni@vm-gittest:~$ sudo gitlab-ctl reconfigure

Start GitLab

giovanni@vm-gittest:~$ sudo gitlab-ctl start

The default root credentials are:

Username: root 
Password: 5iveL!fe

The servers require some minutes to be usable, before you will receive a 502 status code.

To make sure the UI is reachable only within the IA network we have to edit the file
adding the lines

server {
  deny   all;

The git test vm is reachable at:
(the admin/root password is the usual one)