forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (30 loc) · 1.05 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'fileutils'
#$fes = 1
#$rslavess = 1
Vagrant.configure("2") do |config|
config.vm.define "rmaster" do |rm|
rm.vm.provider "docker" do |d|
d.vagrant_vagrantfile = "./dev/hosts/Vagrantfile"
d.build_dir = "redis-master"
d.name = "rmaster"
d.create_args = ["--privileged=true", "-m", "1g"]
#d.ports = [ "6379:6379" ]
d.remains_running = true
end
end
config.vm.define "frontend" do |fe|
fe.vm.provider "docker" do |d|
d.vagrant_vagrantfile = "./dev/hosts/Vagrantfile"
d.build_dir = "web-server"
d.name = "web-server"
d.create_args = ["--privileged=true"]
d.remains_running = true
d.create_args = d.create_args << "--link" << "rmaster:rmaster"
d.ports = ["3000:3000"]
d.env = {"REDISMASTER_SERVICE_HOST"=>"rmaster","REDISMASTER_SERVICE_PORT"=>"6379"}
end
end
### Todo , add data generator.
end