forked from iver/vagrant-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (28 loc) · 1.03 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
# -*- mode: ruby -*-
# # vi: set ft=ruby :
#
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box_url = "https://github.com/ivan-iver/vagrant_golang/releases/download/v0.1/golang.box"
# config.vm.box_url = "/Users/Iver/VirtualBox VMs/ubuntu-14.04.box"
config.vm.box = "golangmx"
config.vm.hostname = "gophers"
config.vm.network "private_network", ip: "10.2.2.205"
config.vm.provision :shell do |shell|
shell.path = "bin/setup.sh"
shell.privileged = true
end
config.vm.provision :shell do |shell|
shell.path = "bin/golang.sh"
shell.privileged = false
end
config.ssh.forward_agent = true
config.vm.box_check_update = true
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000 ]
vb.memory = 1024
vb.cpus = 2
end
end