daml/infra/macos/2-common-box/Vagrantfile
Gary Verhaegen 5b2319e137
multistep macos setup (#5768)
multistep macos setup

This updates the macOS node setup instructions to avoid repeating
identical work and network traffic across all machines through
initialization by building a "daily" image with all the tools and code
we need.

CHANGELOG_BEGIN
CHANGELOG_END

* Fix 3-running-box to remount nix partition

* updated scripts to use multi-step process

* add copyright notices

Co-authored-by: nycnewman <edward@digitalasset.com>
2020-08-18 16:01:02 +02:00

21 lines
604 B
Ruby

provider = ENV["PROVIDER"] || "vmware_desktop"
providers = { "vmware_desktop" => [57344, 10],
"virtualbox" => [4096, 1] }
raise "invalid provider: #{provider}" unless providers.member? provider
Vagrant.configure("2") do |config|
config.vm.box = "macinbox"
config.vm.boot_timeout = 900 # 15 minutes
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider provider do |prov|
prov.gui = false
prov.memory = providers[provider][0]
prov.cpus = providers[provider][1]
end
config.vm.provision "shell" do |script|
script.path = "init.sh"
end
end