This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Vagrantfile
42 lines (33 loc) · 1.46 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "monsenso/macos-10.13"
config.vm.box_version = "1.0.0"
config.vm.network("forwarded_port", guest: 8080, host: 8080)
# Sync the fastlane-ci folder to the guest VM. The type of the synced folder
# has to be rsync or nfs, because BSD-based guests do not support the
# VirtualBox filesystem at this time.
config.vm.synced_folder(".", "/fastlane-ci", type: "nfs")
# NFS requires a host-only network to be created in order to work. This
# requires admin password every time you run `vagrant up`.
config.vm.network("private_network", ip: "192.168.33.10")
config.vm.provider("virtualbox") do |vb|
# Hide the VirtualBox GUI when booting the machine
vb.gui = false
# Customize the amount of CPUs and memory of the VM
vb.memory = "8192"
vb.cpus = 1
# No matter how much CPU is used in the VM, no more than 50% should be used
# on the host machine
vb.customize(["modifyvm", :id, "--cpuexecutioncap", "50"])
# Because the USB 2.0 controller state is part of the saved VM state, the
# VM cannot be started with USB 2.0 support on.
vb.customize(["modifyvm", :id, "--usb", "on"])
vb.customize(["modifyvm", :id, "--usbehci", "off"])
end
# Bootstrap the VM
config.vm.provision("shell",
path: "./vagrant-provision.sh",
privileged: false)
end