forked from asm-helpful/helpful-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (25 loc) · 1.44 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
# 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-2580899813'
config.vm.box_url = 'https://helpful-assets.s3.amazonaws.com/vagrant-boxes/vagrant-heroku-2580899813.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 :forwarded_port, guest: 5000, host: 5000
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