-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
30 lines (26 loc) · 1023 Bytes
/
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
Vagrant.configure(2) do |config|
config.vm.box = "debian/jessie64"
config.vm.box_version = "8.2.1"
# Disabled VirtualBox Guest updates
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# This is the docker network
config.vm.network "private_network", ip: "10.10.0.2", auto_config: false
config.vm.provider :virtualbox do |vb|
# Change this matching the power of your machine
vb.memory = 1024
# vb.cpus = 1
# Set the vboxnet interface to promiscous mode so that the docker veth
# interfaces are reachable
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
# Otherwise we get really slow DNS lookup on OSX (Changed DNS inside the machine)
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
# Enable provisioning with a shell script.
if ENV['SCRIPT']
config.vm.provision "shell", path: ENV['SCRIPT']
end
end