-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
41 lines (37 loc) · 1.17 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# GitBucket-Jenkins-Tomcat
# CI/CD Demo sample with Java1.8
#
# |~~~~~~~~~~~~~| |~~~~~~~~~~~~|
# | | WebHook | |
# | GitBucket |-------->| Jenkins |
# | | | |
# |~~~~~~~~~~~~~| |~~~~~~~~~~~~|
# ^ |
# | git push/clone | deployment
# | V
# |~~~~~~~~~~~~~| |~~~~~~~~~~~~|
# | | | |
# | Development | | Production |
# | | | |
# |~~~~~~~~~~~~~| |~~~~~~~~~~~~|
#
Vagrant.configure("2") do |config|
# gitbucket server setup
config.vm.define "gitbucket" do |gitbucket|
gitbucket.vm.box = "gitbucket"
gitbucket.vm.network "private_network", ip: "192.168.99.2"
end
# jenkins server setup
config.vm.define "Jenkins" do |jenkins|
jenkins.vm.box = "jenkins"
jenkins.vm.network "private_network", ip: "192.168.99.3"
end
# production server setup
config.vm.define "production" do |production|
production.vm.box = "production"
production.vm.network "private_network", ip: "192.168.99.4"
end
end