forked from frandallfarmer/neohabitat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
32 lines (26 loc) · 1.16 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# If we're running on Windows, ensures that VBOX_INSTALL_PATH is appropriately set.
if Gem.win_platform?
ENV["VBOX_INSTALL_PATH"] = "C:\\Program Files\\Oracle\\VirtualBox\\"
end
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_check_update = false
config.vm.network "forwarded_port", guest: 1337, host: 1337, host_ip: "0.0.0.0"
config.vm.network "forwarded_port", guest: 3307, host: 3307, host_ip: "0.0.0.0"
config.vm.network "forwarded_port", guest: 5190, host: 5190, host_ip: "0.0.0.0"
config.vm.network "forwarded_port", guest: 9000, host: 9000, host_ip: "0.0.0.0"
config.vm.network "forwarded_port", guest: 27017, host: 27017, host_ip: "0.0.0.0"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
# Explicitly enforces syncing of the local folder to /vagrant on the VM.
config.vm.synced_folder ".", "/neohabitat"
if Gem.win_platform?
config.vm.provision :shell, binary: true, path: "./vagrant/build.sh"
else
config.vm.provision :shell, path: "./vagrant/build.sh"
end
end