forked from hpi-swt2-exercise/rails-exercise-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
24 lines (20 loc) · 946 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "swt2/trusty64"
config.vm.box_url = "https://github.com/hpi-swt2/swt2-vagrant/releases/download/v0.2/swt2-trusty64.box"
# use 32bit machine
#config.vm.box = "swt2/trusty32"
#config.vm.box_url = "https://github.com/hpi-swt2/swt2-vagrant/releases/download/v0.2/swt2-trusty32.box"
# previously there were performance issues. Try to use the following optimizations
# disable if problems occur or fall back to the 32bit VM
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--cpus", 2]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
end
# port forward
config.vm.network :forwarded_port, host: 3000, guest: 3000
config.vm.synced_folder ".", "/home/vagrant/hpi-swt2"
end