-
Notifications
You must be signed in to change notification settings - Fork 7
/
Vagrantfile
29 lines (22 loc) · 873 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
# A dummy plugin for DockerRoot to set hostname and network correctly at the very first `vagrant up`
module VagrantPlugins
module GuestLinux
class Plugin < Vagrant.plugin("2")
guest_capability("linux", "change_host_name") { Cap::ChangeHostName }
guest_capability("linux", "configure_networks") { Cap::ConfigureNetworks }
end
end
end
Vagrant.configure(2) do |config|
config.vm.define "docker-root", primary: true
config.vm.define "docker-root-dev", autostart: false
config.vm.box = "ailispaw/docker-root"
config.vm.box_version = ">= 1.3.9"
config.vm.provider :virtualbox do |vb|
vb.memory = 2048
end
config.vm.hostname = "docker-root"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder ".", "/vagrant", type: "nfs",
mount_options: ["nolock", "vers=3", "udp", "noatime", "actimeo=1"]
end