forked from isb-cgc/ISB-CGC-Webapp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
41 lines (33 loc) · 1.8 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
38
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
# vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.customize ["modifyvm", :id, "--uart1", "0x3F8", "4"]
vb.customize ["modifyvm", :id, "--uartmode1", "file", File::NULL]
vb.customize ["modifyvm", :id, "--nestedpaging", "off"]
vb.customize ["modifyvm", :id, "--cpus", 2]
vb.customize ["modifyvm", :id, "--paravirtprovider", "hyperv"]
end
config.vm.box_url = "https://app.vagrantup.com/debian/boxes/bullseye64"
config.vm.box = "debian/bullseye64"
# WebApp ports
config.vm.network "forwarded_port", guest: 8086, host: 8086
config.vm.network "forwarded_port", guest: 8006, host: 8006
config.vm.network "forwarded_port", guest: 22, host: 2200, id: "ssh"
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"
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, inline: "if [[ -d /vagrant ]]; then echo \"/vagrant is linked to /home/vagrant/www\"; else ln -s /home/vagrant/www /vagrant; fi;", :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