-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
52 lines (43 loc) · 2.02 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
45
46
47
48
49
50
51
52
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
# Configurate the virtual machine to use 4GB of RAM
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
# Forward the Rails server default port to the host
config.vm.network :forwarded_port, guest: 3000, host: 3000
# Forward the Spring boot default port to the host
config.vm.network :forwarded_port, guest: 8080, host: 8080
# Forward a second port for multi app usage
config.vm.network :forwarded_port, guest: 8081, host: 8081
# Forward sinatra default port
config.vm.network :forwarded_port, guest: 4567, host: 4567
# Forward https
config.vm.network :forwarded_port, guest: 443, host: 443
# postgresql
config.vm.network :forwarded_port, guest: 5432, host: 5432
#mysql
config.vm.network :forwarded_port, guest: 3306, host: 3306
# mongodb
config.vm.network :forwarded_port, guest: 27017, host: 27017
config.vm.network :forwarded_port, guest: 28017, host: 28017
# redis
config.vm.network :forwarded_port, guest: 6379, host: 6379
# rabbitmq
config.vm.network :forwarded_port, guest: 5672, host: 5672
config.vm.network :forwarded_port, guest: 15671, host: 15671
config.vm.network :forwarded_port, guest: 15672, host: 15672
config.vm.network :forwarded_port, guest: 25672, host: 25672
# synced folders
config.vm.synced_folder "workspace/", "/vagrant/workspace"
# provisioning script execution
config.vm.provision "shell", path: "scripts/initial_setup.sh"
config.vm.provision "shell", path: "scripts/install_git.sh"
config.vm.provision "shell", path: "scripts/install_cf_cli.sh"
config.vm.provision "shell", path: "scripts/install_postgres.sh"
config.vm.provision "shell", path: "scripts/install_mysql.sh"
config.vm.provision "shell", path: "scripts/install_rabbitmq.sh"
config.vm.provision "shell", path: "scripts/install_java.sh"
config.vm.provision "shell", path: "scripts/install_rvm_and_ruby.sh"
config.vm.provision "shell", path: "scripts/install_utilities.sh"
end