forked from ASNeG/OpcUaStack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
31 lines (24 loc) · 864 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
31
$script = <<-SCRIPT
'@echo on
set currPath=%cd%
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
@echo on
cd %currPath%
set PreferredToolArchitecture=x64
.\\build.bat %*' | Out-File 'C:\\build_vs.bat' -Encoding Ascii
SCRIPT
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 4
end
config.vm.guest = :windows
config.vm.communicator = :winrm
config.vm.box = "flipback/asneg-winbuild"
config.vm.box_version = "1.1.0"
config.vm.provision "shell", inline: $script, run: "always"
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
config.ssh.insert_key = false
config.ssh.private_key_path = ["~/.ssh/id_rsa", "~/.vagrant.d/insecure_private_key"]
config.ssh.insert_key = false
end