blob: a94838c42983ed016e1cd8c9497a90e71c679f91 [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
Matteo Scandolo485e2bd2016-11-15 17:37:28 -080022 config.vm.define "utah" do |d|
23 d.vm.network "forwarded_port", guest: 9999, host: 9991
24 d.vm.network "private_network", ip: "192.168.33.11"
25 d.vm.provider "virtualbox" do |vb|
26 vb.memory = "1024"
27 end
28 end
29
Andy Bavier094e7162016-11-02 17:01:22 -040030 config.vm.define "global" do |d|
31 d.vm.network "forwarded_port", guest: 9999, host: 9999
32 d.vm.network "private_network", ip: "192.168.33.2"
33 d.vm.provider "virtualbox" do |vb|
34 vb.memory = "1024"
35 end
36 end
37
38 config.vm.provision "shell", privileged: false, inline: <<-SHELL
39 sudo apt-get update
40 sudo apt-get install -y apt-transport-https ca-certificates git
41 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
42 echo deb https://apt.dockerproject.org/repo ubuntu-trusty main | sudo tee /etc/apt/sources.list.d/docker.list
43 sudo apt-get update
44 sudo apt-get install -y git docker-engine python-pip
45 sudo pip install docker-compose
46 sudo groupadd docker
47 sudo usermod -aG docker vagrant
48 SHELL
49end