forked from cliqz-oss/browser-f
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin.Vagrantfile
32 lines (25 loc) · 1 KB
/
win.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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "cliqz/cliqzfox-win10-builder_vmware"
config.vm.network "public_network"
config.vm.guest = :windows
config.vm.boot_timeout = 500
config.vm.communicator = "winrm"
config.winrm.username = "cliqzfoxer"
config.winrm.password = "cliqzfoxer-245"
config.winrm.timeout = 21600 # 6 hours
config.vm.provider "vmware_workstation" do |v|
v.gui = false
v.memory = ENV["NODE_MEMORY"]
v.vmx["numvcpus"] = "#{ENV['NODE_CPU_COUNT']}"
v.vmx["RemoteDisplay.vnc.enabled"] = "true"
v.vmx["RemoteDisplay.vnc.port"] = ENV["NODE_VNC_PORT"]
end
config.vm.provision "shell", run: "always", inline: <<-SHELL
cd c:/jenkins
Remove-Item slave.jar -ErrorAction SilentlyContinue
wget #{ENV['JENKINS_URL']}/jnlpJars/slave.jar -o slave.jar
Start-Process java -ArgumentList '-jar slave.jar -jnlpUrl #{ENV["JENKINS_URL"]}/computer/#{ENV["NODE_ID"]}/slave-agent.jnlp -secret #{ENV["NODE_SECRET"]}'
SHELL
end