-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
50 lines (39 loc) · 1.57 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
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Ubuntu 14.04 box
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.name = "Astromo Dev Box"
# Increase our Box's performance
v.memory = 2048
v.cpus = 2
# https://github.com/mitchellh/vagrant/issues/1807#issuecomment-19148156
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
# http://superuser.com/questions/850357/how-to-fix-extremely-slow-virtualbox-network-download-speed/850389#850389
v.customize ["modifyvm", :id, "--nictype1", "virtio"]
# Enable creating symlinks inside our NFS folder
# Used for npm install
# http://blog.liip.ch/archive/2012/07/25/vagrant-and-node-js-quick-tip.html
# http://stackoverflow.com/a/24365338/1139905
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
# Forward our SSH agent
config.ssh.forward_agent = true
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.33.10"
# Share everything inside this repo to /vagrant on the host
config.vm.synced_folder ".", "/vagrant", type: "nfs",
# http://stackoverflow.com/a/28118716/273638
mount_options: ['actimeo=1']
# Bootstrap our Vagrant
config.vm.provision "shell",
path: "provisions/bootstrap.sh",
privileged: true
# Run our code
config.vm.provision "shell",
path: "provisions/run.sh",
privileged: false
end