-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
33 lines (25 loc) · 1.26 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#config.vm.box = "ubuntu/trusty64"
config.vm.box = "ubuntu/xenial64"
#config.vm.network :private_network, ip: "192.168.33.10"
config.vm.synced_folder ".", "/data"
config.vm.provider "virtualbox" do |v|
v.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000 ]
v.memory = 2048
v.cpus = 1
end
config.vm.provision :shell, :privileged => false, :inline => "bash /data/vagrant/setup1.sh"
config.vm.provision :shell, :privileged => false, :inline => "bash /data/vagrant/setup2_backend.sh"
config.vm.provision :shell, :privileged => false, :inline => "bash /data/vagrant/setup3_frontend.sh"
config.vm.provision :shell, :privileged => false, :inline => "bash /data/vagrant/setup4_front_back_link.sh"
config.vm.provision :shell, :privileged => true, :inline => "bash /data/vagrant/vagrant_startup.sh", run: "always"
config.vm.network "forwarded_port", guest: 80, host: 8888
config.vm.network "forwarded_port", guest: 5432, host: 54320
config.trigger.before :destroy do
info "Cleaning up local files..."
run_remote "bash /data/vagrant/vagrant_cleanup.sh"
end
end