forked from azavea/isprs-potsdam-viz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
37 lines (31 loc) · 1.14 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder "~/.aws", "/home/vagrant/.aws"
config.vm.synced_folder "./", "/vagrant", type: "rsync",
rsync__exclude: [".git/", "app-backend/**/target/",
"deployment/ansible/roles/azavea*/"],
rsync__args: ["--verbose", "--archive", "-z"]
config.vm.provider :virtualbox do |vb|
vb.memory = 8192
vb.cpus = 4
end
# Webpack Dev Server
config.vm.network :forwarded_port, guest: 8284, host: 8284
# API server
config.vm.network :forwarded_port, guest: 9000, host: 9000
# nginx
config.vm.network :forwarded_port, guest: 9100, host: 9100
# Change working directory to /vagrant upon session start.
config.vm.provision "shell", inline: <<SCRIPT
if ! grep -q "cd /vagrant" "/home/vagrant/.bashrc"; then
echo "cd /vagrant" >> "/home/vagrant/.bashrc"
fi
SCRIPT
config.vm.provision "ansible" do |ansible|
ansible.playbook = "deployment/ansible/isprs-potsdam-viz.yml"
ansible.galaxy_role_file = "deployment/ansible/roles.yml"
end
end