arpiagariu | 3322cf7 | 2016-06-22 16:27:52 -0700 | [diff] [blame] | 1 | Vagrant.configure("2") do |config| |
Matteo Scandolo | b654ac5 | 2016-06-27 16:11:34 -0700 | [diff] [blame] | 2 | # base image |
arpiagariu | 3322cf7 | 2016-06-22 16:27:52 -0700 | [diff] [blame] | 3 | config.vm.box = "ubuntu/trusty64" |
| 4 | |
Matteo Scandolo | b654ac5 | 2016-06-27 16:11:34 -0700 | [diff] [blame] | 5 | # setup a private network to the host machine |
arpiagariu | 3322cf7 | 2016-06-22 16:27:52 -0700 | [diff] [blame] | 6 | config.vm.network "private_network", ip: "192.168.46.100" |
Matteo Scandolo | b654ac5 | 2016-06-27 16:11:34 -0700 | [diff] [blame] | 7 | |
| 8 | # share the folder |
| 9 | config.vm.synced_folder "../../../", "/opt/xos" |
| 10 | |
| 11 | # increase RAM |
| 12 | config.vm.provider :virtualbox do |vb| |
Matteo Scandolo | ba678a9 | 2016-06-20 17:16:15 -0700 | [diff] [blame] | 13 | vb.customize ['modifyvm', :id,'--memory', '4096'] |
Matteo Scandolo | b654ac5 | 2016-06-27 16:11:34 -0700 | [diff] [blame] | 14 | end |
| 15 | |
| 16 | # make the frontend config |
| 17 | config.vm.provision "shell", inline: "cd /opt/xos/xos/configurations/frontend && make" |
arpiagariu | 3322cf7 | 2016-06-22 16:27:52 -0700 | [diff] [blame] | 18 | end |