forked from ImagingDataCommons/IDC-WebApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
27 lines (22 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box_url = "https://app.vagrantup.com/ubuntu/boxes/xenial64"
config.vm.box = "ubuntu/xenial64"
# WebApp ports
config.vm.network "forwarded_port", guest: 8085, host: 8085
config.vm.network "forwarded_port", guest: 8005, host: 8005
config.vm.synced_folder ".", "/home/vagrant/www"
config.vm.synced_folder "../", "/home/vagrant/parentDir"
config.vm.synced_folder "../secure_files", "/home/vagrant/secure_files"
# Map Common for the WebApp
config.vm.synced_folder "../IDC-Common", "/home/vagrant/www/IDC-Common"
# Map API so it can use this VM
config.vm.synced_folder "../IDC-API", "/home/vagrant/API"
config.vm.provision :shell, inline: "echo 'source /home/vagrant/www/shell/env.sh' > /etc/profile.d/sa-environment.sh", :run => 'always'
config.vm.provision "shell", path: 'shell/install-deps.sh'
config.vm.provision "shell", path: 'shell/create-database.sh'
config.vm.provision "shell", path: 'shell/database-setup.sh'
config.vm.provision "shell", path: 'shell/vagrant-start-server.sh'
config.vm.provision "shell", path: 'shell/vagrant-set-env.sh'
end