-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.sample
executable file
·35 lines (27 loc) · 1.08 KB
/
Vagrantfile.sample
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
Vagrant.configure(2) do |config|
config.vm.box = "phusion/ubuntu-14.04-amd64"
config.vm.box_url = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vmwarefusion.box"
config.vm.hostname = "rabbitmq.hermes.local"
config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
v.vmx["numvcpus"] = "1"
end
config.vm.provider "virtualbox" do |v, override|
override.vm.box_url = "https://vagrantcloud.com/phusion/boxes/ubuntu-14.04-amd64/versions/2014.04.30/providers/virtualbox.box"
v.memory = 1024
v.cpus = 1
end
config.vm.provision :docker do |d|
d.build_image "/vagrant/.docker",
args: "-t rabbitmq-hashing"
d.run "rabbitmq",
image: "rabbitmq-hashing",
args: "-e RABBITMQ_NODENAME=hermes -p 5672:5672 -p 15672:15672"
end
config.vm.provision "shell", run: "always", inline: <<-SHELL
docker start rabbitmq
SHELL
config.vm.network "forwarded_port", guest: 5672, host: 5672
config.vm.network "forwarded_port", guest: 15672, host: 15672
config.vm.network "private_network", ip: "192.168.33.11"
end