-
Notifications
You must be signed in to change notification settings - Fork 8
/
Vagrantfile
33 lines (26 loc) · 916 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
32
33
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
VAGRANT_BOX = ENV.fetch('VAGRANT_BOX', 'bento/ubuntu-18.04')
VAGRANT_RAM = ENV.fetch('VAGRANT_RAM', 2048).to_i
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = VAGRANT_BOX
if File.exist?("../../bin/passenger")
passenger_path = File.absolute_path("../../")
elsif File.directory?("../passenger")
passenger_path = File.absolute_path("../passenger")
end
if passenger_path
config.vm.synced_folder passenger_path, "/passenger"
end
config.vm.provision :shell, :path => "internal/scripts/setup-vagrant.sh"
config.vm.provider "virtualbox" do |v|
v.memory = VAGRANT_RAM
v.cpus = 2
end
config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = VAGRANT_RAM.to_s
v.vmx["numvcpus"] = "2"
end
end