Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Gitlab with Virtualbox and Vagrant on Ubuntu

I have no idea How to install Gitlab with Virtualbox and Vagrant on Ubuntu.I am totally lost and getting nothing from the Online Research.

Please Help me..

Thanks And Regards.

like image 290
Kunwar Siddharth Singh Avatar asked Sep 04 '12 06:09

Kunwar Siddharth Singh


2 Answers

GitLab CEO here. You can just install the Omnibus package in your virtual machine, this is 2 minutes of work, see https://about.gitlab.com/downloads/

If you want to have the Omnibus package install automatically there is a community Vagrant option listed on https://about.gitlab.com/installation/

The cookbooks or virtualbox images are no longer supported nor recommended.

like image 147
Sytse Sijbrandij Avatar answered Oct 14 '22 12:10

Sytse Sijbrandij


You don't need to do this from scratch, just use the Gitlab Virtualbox image that is provided.

Reference https://github.com/gitlabhq/gitlabhq/wiki/VirtualBox-Image.

Download the Virtualbox image which can be found at http://minus.com/m55CpmY6C/.

Access virtual machine with vagrant:

vagrant box add gitlab /path/to/the/GITLAB-UBUNTU-SERVER-10.04-I386.box
vagrant init gitlab
vagrant up

In the vagrant file:

Vagrant::Config.run do |config|
  config.vm.box = "gitlab"
  config.vm.network :hostonly, "33.33.33.10"
end

To login to vagrant:

vagrant ssh

To restart and upgrade the Gitlab Web Server:

cp gitlabhq/config/gitlab.yml{.example,}
cp gitlabhq/config/database.yml{.example,}
./restart_and_upgarde_gitlabhq

That starts the Gitlab server, and you can login to the Gitlab website at http://33.33.33.10

A GitLab admin login is already set up with username "[email protected]", and password "5iveL!fe".

like image 29
ronalchn Avatar answered Oct 14 '22 12:10

ronalchn