This is an old revision of the document!
This is merely a collected records of my experience to setup DevOps infrastructure with Gitlab, Gitlab-CI, and Dokku.
Our setup uses virtual environment which is run on Proxmox VE with LXC as OS-level virtualization for Gitlab/Gitlab-CI server, and KVM as hypervisor for Dokku server (virtual machine). The first thing to do is setup the virtual server through web-based management of Proxmox VE. We allocate one CPU and 2048 MB of RAM for each virtual server.
There are steps for doing setup of virtual server and thankfully it is provided as wizard. Our steps are described below.
# adduser stwn # visudo
$ ssh stwn@gitlab-server
$ sudo apt-get update
$ sudo apt-get install curl screen
$ curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_8.6.6-ce.0_amd64.deb/download
$ sudo dpkg -i gitlab-ce_8.6.6-ce.0_amd64.deb
sudo gitlab-ctl reconfigure
$ sudo nano /etc/gitlab/gitlab.rb
Uncomment these lines.
web_server['external_users'] = [] web_server['username'] = 'gitlab-www' web_server['group'] = 'gitlab-www'
$ sudo gitlab-ctl restart
Use this command to see the log of Gitlab.
$ sudo gitlab-ctl tail