GitLab: Install and configure
Installing and configure a gitlab server on vm-gittest.us.archive.org
For the basic requirements please check the document
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/requirements.md
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 https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.9.0-omnibus.2-1_amd64.deb 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.
WARNING
To make sure the UI is reachable only within the IA network we have to edit the file
/var/opt/gitlab/nginx/conf/gitlab-http.conf
adding the lines
server { ... ... allow 123.12.34.0/21; deny all; ... ... } |
The git test vm is reachable at: http://vm-gittest.us.archive.org/
(the admin/root password is the usual one)