forked from switch120/serverless-btb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vagrantfile
executable file
·36 lines (25 loc) · 1.06 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
required_plugins = %w( vagrant-fsnotify )
required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
# bridged network connection
#config.vm.network :public_network
config.vm.network "private_network", ip: "192.168.90.80"
config.vm.hostname = "btb"
config.vm.network "forwarded_port", guest: 4200, host: 4200
config.vm.network "forwarded_port", guest: 3000, host: 3000
# NFS mount the shared folder (requires password and privat network)
config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
# Standard mount
#config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
config.vm.provision :shell, privileged: false, :path => "provision.sh"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--audio", "none"]
v.memory = 4096
v.cpus = 2
end
end