forked from hpi-swt2/event-und-raumplanung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
22 lines (19 loc) · 892 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "swt2/ubuntu-rails"
config.vm.box_url = "https://github.com/hpi-swt2/swt2-vagrant/releases/download/v0.1/trusty64-rails.box"
# use 32bit machine
# config.vm.box_url = "https://github.com/hpi-swt2/swt2-vagrant/releases/download/v0.1/trusty32-rails.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