-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
34 lines (28 loc) · 1.24 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
# -*- 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|
# Give the box 3GB or RAM and 2 cores
config.vm.provider 'virtualbox' do |vb|
vb.customize ["modifyvm", :id, "--memory", "3072"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "90"]
end
# Configure the actual windows machine
config.vm.define "${vagrant-box.name}" do |windows|
windows.vm.guest = :windows
windows.vm.box = "${vagrant-box.name}"
windows.vm.box_url = "${vagrant-box.baseurl}/${vagrant-box.name}.box"
# Set up WinRM communication
windows.vm.communicator = 'winrm'
windows.winrm.username = "IEUser"
windows.winrm.password = "Passw0rd!"
windows.vm.network 'forwarded_port', host: 3389, guest: 3389, auto_correct: true
# Share the folders needed for our build
windows.vm.synced_folder "${build.dir}", "${vagrant-build.dir}"
windows.vm.synced_folder "${reports.dir}", "${vagrant-reports.dir}"
windows.vm.synced_folder "${src.dir}", "${vagrant-src.dir}"
windows.vm.synced_folder "${lib.dir}", "${vagrant-lib.dir}"
end
end