blob: 4c772d81fe7f642703e5327892794b831bcf5c0b [file] [log] [blame]
arpiagariu3322cf72016-06-22 16:27:52 -07001Vagrant.configure("2") do |config|
Matteo Scandolob654ac52016-06-27 16:11:34 -07002 # base image
arpiagariu3322cf72016-06-22 16:27:52 -07003 config.vm.box = "ubuntu/trusty64"
4
Matteo Scandolob654ac52016-06-27 16:11:34 -07005 # setup a private network to the host machine
arpiagariu3322cf72016-06-22 16:27:52 -07006 config.vm.network "private_network", ip: "192.168.46.100"
Matteo Scandolob654ac52016-06-27 16:11:34 -07007
8 # share the folder
9 config.vm.synced_folder "../../../", "/opt/xos"
10
11 # increase RAM
12 config.vm.provider :virtualbox do |vb|
Matteo Scandoloba678a92016-06-20 17:16:15 -070013 vb.customize ['modifyvm', :id,'--memory', '4096']
Matteo Scandolob654ac52016-06-27 16:11:34 -070014 end
15
16 # make the frontend config
17 config.vm.provision "shell", inline: "cd /opt/xos/xos/configurations/frontend && make"
arpiagariu3322cf72016-06-22 16:27:52 -070018 end