-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
32 lines (26 loc) · 1.12 KB
/
Vagrantfile
File metadata and controls
32 lines (26 loc) · 1.12 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu-trusty-64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
config.vm.network :forwarded_port, guest: 8000, host: 8888, auto_correct: true
config.vm.network "public_network", bridge: "eth0"
config.vm.synced_folder "www/", "/var/www", create: true, group: "www-data", owner: "vagrant"
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
v.customize ["modifyvm", :id, "--nictype1", "virtio"]
v.name = "myApp"
v.memory = 4096
v.cpus = 4
v.gui = false
end
config.vm.provision "shell" do |s|
s.path = "www/provision/setup.sh"
# Required arguments:
# arg1: root dir in the guest machine
# arg2: the name of your app
s.args = "'/var/www' 'myApp'"
end
end