support-foo/web

View on GitHub
Vagrantfile

Summary

Maintainability
Test Coverage
# 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