Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | Vagrant.configure("2") do |config| |
Scott Baker | 665839d | 2016-06-29 07:36:36 -0700 | [diff] [blame] | 2 | # base image |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 3 | config.vm.box = "ubuntu/trusty64" |
| 4 | |
Scott Baker | 665839d | 2016-06-29 07:36:36 -0700 | [diff] [blame] | 5 | # setup a private network to the host machine |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 6 | config.vm.network "private_network", ip: "192.168.46.100" |
Scott Baker | 665839d | 2016-06-29 07:36:36 -0700 | [diff] [blame] | 7 | |
| 8 | # share the folder |
Matteo Scandolo | c217d70 | 2016-06-29 16:58:33 -0700 | [diff] [blame] | 9 | config.vm.synced_folder "../", "/opt/service-profile" |
Matteo Scandolo | 206e279 | 2016-09-22 14:13:30 -0700 | [diff] [blame^] | 10 | config.vm.synced_folder "../..", "/opt/xos", create: true |
Matteo Scandolo | 1aeb49f | 2016-07-20 15:36:22 -0700 | [diff] [blame] | 11 | config.vm.synced_folder "../../xos_services", "/opt/xos_services", create: true |
Matteo Scandolo | c217d70 | 2016-06-29 16:58:33 -0700 | [diff] [blame] | 12 | config.vm.synced_folder ".", "/vagrant", disabled: true |
Scott Baker | 665839d | 2016-06-29 07:36:36 -0700 | [diff] [blame] | 13 | |
| 14 | # increase RAM |
| 15 | config.vm.provider :virtualbox do |vb| |
Matteo Scandolo | c217d70 | 2016-06-29 16:58:33 -0700 | [diff] [blame] | 16 | vb.customize ['modifyvm', :id,'--memory', '4096'] |
Scott Baker | 665839d | 2016-06-29 07:36:36 -0700 | [diff] [blame] | 17 | end |
| 18 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 19 | end |