-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
36 lines (31 loc) · 1.12 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define "linux" do |c|
c.vm.box = "bento/ubuntu-16.04"
c.vm.network "forwarded_port", guest: 8081, host: 8084
c.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "1024"
end
c.vm.provision "shell", inline: <<-SHELL
sudo apt-get update;
sudo apt-get install -y ubuntu-desktop;
SHELL
end
config.vm.define "windows" do |c|
c.vm.communicator = "winrm"
c.winrm.username = "IEUser"
c.winrm.password = "Passw0rd!"
c.vm.box = "chusiang/win10-x64-ansible"
c.vm.box_version = "1.1.0"
c.vm.boot_timeout = 600
c.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
end
c.vm.provision "init", type: "shell", path: "init-windows.bat", args: "rnproject", privileged: true
c.vm.provision "run", type: "shell", path: "run-windows.bat", args: "rnproject", privileged: true, powershell_elevated_interactive: true
c.vm.provision "package", type: "shell", path: "package-windows.bat", args: "rnproject", privileged: false
end
end