forked from CBIIT/cananolab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
35 lines (28 loc) · 1.5 KB
/
Vagrantfile
File metadata and controls
35 lines (28 loc) · 1.5 KB
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
# -*- 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 = "2048"
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/buster64"
config.vm.box = "debian/buster64"
# WebApp ports
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 9990, host: 9990
config.vm.synced_folder ".", "/home/vagrant/cananolab"
config.vm.synced_folder "../", "/home/vagrant/parentDir"
config.vm.synced_folder "../secure_files", "/home/vagrant/secure_files"
config.vm.provision :shell, inline: "echo 'source /home/vagrant/cananolab/shell/env.sh' > /etc/profile.d/sa-environment.sh", :run => 'always'
config.vm.provision "shell", path: 'shell/install-deps.sh', env: {"IS_DEV" => "true"}
config.vm.provision "shell", path: 'shell/database-setup.sh', env: {"IS_DEV" => "true"}
config.vm.provision "shell", path: 'shell/run-build.sh', env: {"IS_DEV" => "true"}
config.vm.provision "shell", path: 'shell/wildfly-setup.sh', env: {"IS_DEV" => "true"}
end