GitLab is a neat GitHub clone that can be installed on your own servers. I wanted to setup mine running in a virtualized Ubuntu 12.04LTS environment.
These instructions are for Ubuntu 12.04.2 AMD64 and GitLab 5-3-stable
Basic Instructions are here:
Deviations from Official Instructions
Rather than downloading and compiling ruby 1.9.3, I installed it from the repo:
sudo apt-get install ruby1.9.3
However, I still installed the Bundler Gem.
I went with MySQL over PostgreSQL simply because it integrates into my existing tools better.
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
Notice in the “Install Gems” step, you have to use the First option for MySQL:
sudo -u git -H bundle install --deployment --without development test postgres