forked from asm-helpful/helpful-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (27 loc) · 1.6 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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# For a complete reference, please see the online documentation at
# vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
# The box name and SHA should be updated if the box itself changes.
config.vm.box = 'vagrant-heroku-301e14c9d1ac64261eb40c526bb788e7.box'
config.vm.box_url = 'https://s3.amazonaws.com/helpful-assets/vagrant-boxes/vagrant-heroku-301e14c9d1ac64261eb40c526bb788e7.box'
config.vm.provision :shell, path: 'config/vagrant/bootstrap.sh'
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:5000" will access port 5000 on the guest machine.
config.vm.network :private_network, ip: "192.168.50.4"
config.vm.network :forwarded_port, guest: 5000, host: 5000
config.vm.synced_folder(".", "/vagrant", nfs: true)
config.vm.provider "virtualbox" do |vb|
vb.customize ['modifyvm', :id, '--cpus', '2']
vb.customize ['modifyvm', :id, '--ioapic', 'on']
vb.customize ['modifyvm', :id, '--memory', '2048']
# https://github.com/mitchellh/vagrant/issues/1807
# whatupdave: my VM was super slow until I added these:
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
# seems to be safe to run with: https://github.com/griff/docker/commit/e5239b98598ece4287c1088e95a2eaed585d2da4
end
end