Skip to content

Instantly share code, notes, and snippets.

@soblom
Last active August 29, 2015 14:17
Show Gist options
  • Save soblom/20170c169e37bafac8ee to your computer and use it in GitHub Desktop.
Save soblom/20170c169e37bafac8ee to your computer and use it in GitHub Desktop.
Quick GitLab Vagrant VM
#
# Creates Ubuntu VM and installs GitLab 7.8.4
# Install documentation can be found here: https://about.gitlab.com/downloads/
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu_cim_1404'
config.vm.box_url 'https://cloud-images.ubuntu.com/vagrant/trusty/current/'\
'trusty-server-cloudimg-amd64-vagrant-disk1.box'
config.vm.network 'forwarded_port', guest: 80, host: 8080
config.vm.provider 'virtualbox' do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.provision 'shell', inline: <<-SHELL
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server
sudo apt-get install postfix
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.8.4-omnibus-1_amd64.deb
sudo dpkg -i gitlab_7.8.4-omnibus-1_amd64.deb
sudo gitlab-ctl reconfigure
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment