-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathVagrantfile
38 lines (30 loc) · 1.07 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
# determine vagrant provider
ENV['VAGRANT_DEFAULT_PROVIDER'] = ENV['NANOBOX_BUILD_VAGRANT_PROVIDER'] || 'virtualbox'
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.provider 'virtualbox' do |v|
v.memory = 1024
v.cpus = 1
end
config.vm.provider "vmware_fusion" do |v, override|
v.vmx["memsize"] = "1024"
v.vmx["numvcpus"] = "1"
v.gui = false
override.vm.box = "trusty64_vmware"
override.vm.box_url = 'https://github.com/pagodabox/vagrant-packer-templates/releases/download/v0.2.0/trusty64_vmware.box'
end
config.vm.network "private_network", type: "dhcp"
config.vm.provision "shell", inline: <<-SCRIPT
echo "installing build tools..."
apt-get -y update -qq
apt-get -y upgrade
apt-get install -y build-essential software-properties-common python-software-properties ipvsadm
add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
apt-get -y update -qq
apt-get install -y golang
apt-get install git mercurial bzr
apt-get -y autoremove
SCRIPT
end