forked from fearghalodonncha/EFDC-MPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (24 loc) · 976 Bytes
/
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
$machine_cap = "90"
$machine_cpus = "8"
$machine_name = "ubuntu-EFDC"
$machine_ram = "4096"
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder "./", "/home/efdc/", create: true
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--name", $machine_name]
vb.customize ["modifyvm", :id, "--cpus", $machine_cpus]
vb.customize ["modifyvm", :id, "--cpuexecutioncap", $machine_cap]
vb.customize ["modifyvm", :id, "--memory", $machine_ram]
end
# execute the setup.sh bash script that installs all required dependencies
config.vm.provision "shell" do |s|
s.path = "./setup.sh"
end
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
end