blob: ee7593ccf6fe2126a27124fb63e88be75758261b [file] [log] [blame]
Andy Bavier094e7162016-11-02 17:01:22 -04001# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4Vagrant.configure(2) do |config|
5
6 config.vm.box = "ubuntu/trusty64"
7
8 config.vm.synced_folder "../", "/home/vagrant/service-profile"
9 config.vm.synced_folder "../../xos", "/home/vagrant/xos", create: true
10 config.vm.synced_folder "../../xos_services", "/home/vagrant/xos_services", create: true
Matteo Scandolo87104362016-11-10 15:04:21 -080011 config.vm.synced_folder "../../xos_libraries", "/home/vagrant/xos_libraries", create: true
Andy Bavier094e7162016-11-02 17:01:22 -040012 config.vm.synced_folder ".", "/vagrant", disabled: true
13
14 config.vm.define "arizona" do |d|
15 d.vm.network "forwarded_port", guest: 9999, host: 9990
16 d.vm.network "private_network", ip: "192.168.33.10"
17 d.vm.provider "virtualbox" do |vb|
18 vb.memory = "1024"
19 end
20 end
21
22 config.vm.define "global" do |d|
23 d.vm.network "forwarded_port", guest: 9999, host: 9999
24 d.vm.network "private_network", ip: "192.168.33.2"
25 d.vm.provider "virtualbox" do |vb|
26 vb.memory = "1024"
27 end
28 end
29
30 config.vm.provision "shell", privileged: false, inline: <<-SHELL
31 sudo apt-get update
32 sudo apt-get install -y apt-transport-https ca-certificates git
33 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
34 echo deb https://apt.dockerproject.org/repo ubuntu-trusty main | sudo tee /etc/apt/sources.list.d/docker.list
35 sudo apt-get update
36 sudo apt-get install -y git docker-engine python-pip
37 sudo pip install docker-compose
38 sudo groupadd docker
39 sudo usermod -aG docker vagrant
40 SHELL
41end