Skip to content
Snippets Groups Projects
Commit a57a7974 authored by Adam Mulvany's avatar Adam Mulvany
Browse files

First commit

parents
No related branches found
No related tags found
No related merge requests found
# Omnibus-Vagrant
#### Requirements:
[Virtualbox 5.1+](https://www.virtualbox.org/wiki/Downloads)
[Vagrant 1.9+](https://www.vagrantup.com/downloads.html)
#### Usage
`VERSION=x.x.x EDITION="ee|ce" vagrant up`
i.e.
`VERSION=9.1.1 EDITION="ee" vagrant up`
The application will be available on http://localhost:{version + 0}
i.e. Version 9.1.1 will accessible from https://localhost:9110 on the host.
#### Cleanup
Once you are finished testing etc you can remove the VM with:
`VERSION=9.1.1 EDITION="ee" vagrant destroy`
and recreate new VMs as you please using the above steps.
# -*- mode: ruby -*-
# vi: set ft=ruby :
ver = ENV['VERSION']
lic = ENV['EDITION'].downcase
get_package = "curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-#{lic}/script.deb.sh | sudo bash"
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 80, host: ver.gsub(/[\.]/,"") + "0"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get install curl openssh-server ca-certificates postfix
#{get_package}
sudo apt-get install gitlab-#{lic}=#{ver}-#{lic}.0
sudo gitlab-ctl reconfigure
SHELL
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment