forked from GPII/windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (34 loc) · 1.88 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8.0"
# By default this VM will use 2 processor cores and 2GB of RAM. The 'VM_CPUS' and
# "VM_RAM" environment variables can be used to change that behaviour.
cpus = ENV["VM_CPUS"] || 2
ram = ENV["VM_RAM"] || 2048
Vagrant.configure(2) do |config|
config.vm.box = "inclusivedesign/windows10-eval-x64-Apps"
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct:true
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "rdp", auto_correct:true
config.vm.provider :virtualbox do |vm|
vm.gui = true
vm.customize ["modifyvm", :id, "--memory", ram]
vm.customize ["modifyvm", :id, "--cpus", cpus]
vm.customize ["modifyvm", :id, "--vram", "256"]
vm.customize ["modifyvm", :id, "--accelerate3d", "off"]
vm.customize ["modifyvm", :id, "--audio", "null", "--audiocontroller", "hda"]
vm.customize ["modifyvm", :id, "--ioapic", "on"]
vm.customize ["setextradata", "global", "GUI/SuppressMessages", "all"]
end
config.vm.provision "shell", inline: <<-SHELL
choco upgrade firefox googlechrome -y
SHELL
# Provide original script path for use in relative paths, since vagrant copies the script to a temporary location
config.vm.provision "shell", path: "provisioning/Chocolatey.ps1", args: "-originalBuildScriptPath \"C:\\vagrant\\provisioning\\\""
config.vm.provision "shell", path: "provisioning/CouchDB.ps1", args: "-originalBuildScriptPath \"C:\\vagrant\\provisioning\\\""
config.vm.provision "shell", path: "provisioning/Npm.ps1", args: "-originalBuildScriptPath \"C:\\vagrant\\provisioning\\\""
config.vm.provision "shell", path: "provisioning/Build.ps1", args: "-originalBuildScriptPath \"V:\\provisioning\\\""
end