-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
44 lines (34 loc) · 1.73 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
38
39
40
41
42
43
44
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
config.vm.network "private_network", ip: "10.10.10.10"
# graphite-web
config.vm.network "forwarded_port", guest: 3080, host: 3080, host_ip: "127.0.0.1"
# grafana
config.vm.network "forwarded_port", guest: 3000, host: 3000, host_ip: "127.0.0.1"
# JMX - main server
config.vm.network "forwarded_port", guest: 9010, host: 9010, host_ip: "127.0.0.1"
# JMX - data server
config.vm.network "forwarded_port", guest: 9011, host: 9011, host_ip: "127.0.0.1"
config.vm.provider :virtualbox do |vb|
vb.name = "atl-microservices"
vb.memory = 2048
vb.cpus = 2
end
config.vm.provision "file", source: "vagrant-scripts", destination: "/tmp/vagrant-scripts"
config.vm.provision "shell", path: "vagrant-scripts/provisioning.sh"
config.vm.provision "shell", path: "vagrant-scripts/toxiproxy_setup_proxies.sh"
config.vm.provision "shell", path: "vagrant-scripts/mongo/setup_database.sh"
config.vm.provision "shell", path: "vagrant-scripts/reset-env.sh"
end