Skip to content

Instantly share code, notes, and snippets.

@luiscastillocr
Last active January 4, 2016 18:19
Show Gist options
  • Save luiscastillocr/8659727 to your computer and use it in GitHub Desktop.
Save luiscastillocr/8659727 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos-6.3"
config.vm.boot_timeout = 600
config.vm.network "forwarded_port", guest: 8001, host: 8001
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.network "forwarded_port", guest: 5432, host: 5432
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 2048]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.network :private_network, ip: "192.168.33.2", :netmask => "255.255.0.0"
config.ssh.forward_agent = true
config.vm.synced_folder "E:/work/project/", "/home/vagrant/project", :nfs => true
# config.vm.provision :shell, :inline => "mount -t nfs 192.168.33.1:/E/work/bayer/project/ /home/vagrant/project/"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment