-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
47 lines (37 loc) · 1.54 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- mode: ruby -*-
# vi: set ft=ruby :
# 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|
# Name
config.vm.box = "trusty"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
# vagrant-cachier caches packages for your vm local
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
# does not work for encrypted homedirs
#config.cache.synced_folder_opts = {
# type: :nfs,
# mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
#}
end
config.vm.synced_folder "", "/vagrant", disabled: true
# cookies special provisioning
config.vm.provision :shell, :path => "bootstrap_vagrant.sh"
# Configure NFS shared folder
config.vm.synced_folder "", "/vagrant/", type: "nfs"
config.vm.synced_folder "../../", "/usr/local/share/tine20.git", type: "nfs"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# Hope it's free - yey!
config.vm.network :private_network, ip: "10.10.10.10"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1524"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
end
config.vm.network "forwarded_port", guest: 80, host: 8080
end