4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5 VAGRANTFILE_API_VERSION = "2"
7 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9 config.vm.box = "trusty"
10 config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
12 # vagrant-cachier caches packages for your vm local
13 if Vagrant.has_plugin?("vagrant-cachier")
14 config.cache.scope = :box
16 # does not work for encrypted homedirs
17 #config.cache.synced_folder_opts = {
19 # mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
23 config.vm.synced_folder "", "/vagrant", disabled: true
25 # cookies special provisioning
26 config.vm.provision :shell, :path => "bootstrap_vagrant.sh"
28 # Configure NFS shared folder
29 config.vm.synced_folder "", "/vagrant/", type: "nfs"
30 config.vm.synced_folder "../../", "/usr/local/share/tine20.git", type: "nfs"
32 # Create a private network, which allows host-only access to the machine
33 # using a specific IP.
34 # Hope it's free - yey!
35 config.vm.network :private_network, ip: "10.10.10.10"
37 # Provider-specific configuration so you can fine-tune various
38 # backing providers for Vagrant. These expose provider-specific options.
39 # Example for VirtualBox:
40 config.vm.provider :virtualbox do |vb|
41 vb.customize ["modifyvm", :id, "--memory", "1524"]
42 vb.customize ["modifyvm", :id, "--cpus", "2"]
43 vb.customize ["modifyvm", :id, "--ioapic", "on"]
46 config.vm.network "forwarded_port", guest: 80, host: 8080