forked from StefanScherer/windows-docker-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
102 lines (86 loc) · 3.92 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8.4"
Vagrant.configure("2") do |config|
config.vm.communicator = "winrm"
config.vm.synced_folder ".", "/vagrant", disabled: true
home = ENV['HOME'].gsub('\\', '/')
config.vm.synced_folder home, home
config.vm.define "2016" do |cfg|
cfg.vm.box = "windows_2016_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 2016"
end
config.vm.define "2016-box" do |cfg|
cfg.vm.box = "StefanScherer/windows_2016_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 2016-box"
end
config.vm.define "1709", autostart: false do |cfg|
cfg.vm.box = "windows_server_1709_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 1709"
end
config.vm.define "1803", autostart: false do |cfg|
cfg.vm.box = "windows_server_1803_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 1803"
end
config.vm.define "1809", autostart: false do |cfg|
cfg.vm.box = "windows_server_1809_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 1809"
end
config.vm.define "1903", autostart: false do |cfg|
cfg.vm.box = "windows_server_1903_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 1903"
end
config.vm.define "2019", autostart: false do |cfg|
cfg.vm.box = "windows_2019_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 2019"
end
config.vm.define "2019-box", autostart: false do |cfg|
cfg.vm.box = "StefanScherer/windows_2019_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName 2019-box"
end
config.vm.define "insider", autostart: false do |cfg|
cfg.vm.box = "windows_server_insider_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName insider"
end
config.vm.define "lcow", autostart: false do |cfg|
cfg.vm.box = "windows_server_1903_docker"
cfg.vm.provision "shell", path: "scripts/create-machine.ps1", args: "-machineHome #{home} -machineName lcow -enableLCOW"
["vmware_fusion", "vmware_workstation"].each do |provider|
config.vm.provider provider do |v, override|
v.memory = 5120
end
end
end
["vmware_fusion", "vmware_workstation"].each do |provider|
config.vm.provider provider do |v, override|
v.gui = false
v.memory = 2048
v.cpus = 2
v.enable_vmrun_ip_lookup = false
v.linked_clone = true
v.vmx["vhv.enable"] = "TRUE"
v.ssh_info_public = true
end
end
config.vm.provider "virtualbox" do |v, override|
v.gui = false
v.memory = 2048
v.cpus = 2
v.linked_clone = true
override.vm.network :private_network, ip: "192.168.99.90", gateway: "192.168.99.1"
override.vm.network "forwarded_port", guest: 10000, host: 10000
override.vm.network "forwarded_port", guest: 10001, host: 10001
override.vm.network "forwarded_port", guest: 10002, host: 10002
override.vm.network "forwarded_port", guest: 10003, host: 10003
override.vm.network "forwarded_port", guest: 10004, host: 10004
override.vm.network "forwarded_port", guest: 10004, host: 10004
override.vm.network "forwarded_port", guest: 80, host: 10000, host_ip: "192.168.99.90"
override.vm.network "forwarded_port", guest: 2525, host: 2525, host_ip: "192.168.99.90"
override.vm.network "forwarded_port", guest: 2526, host: 2625, host_ip: "192.168.99.90"
end
config.vm.provider "hyperv" do |v|
v.cpus = 2
v.maxmemory = 2048
v.differencing_disk = true
end
end