-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
26 lines (25 loc) · 1.12 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
# vim: set autoindent ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 8081, host: 8081
config.vm.network "forwarded_port", guest: 9000, host: 9000
config.vm.network "forwarded_port", guest: 10023, host: 22
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "8192"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
end
config.vm.provision "shell",
inline: "apt-get update && apt-get upgrade -y && apt-get install -y git"
config.vm.provision "shell",
path: "fig-up.sh"
config.vm.provision "docker" do |d|
d.run "crosbymichael/skydns",
args: "-p 172.17.42.1:53:53/udp --name skydns crosbymichael/skydns -nameserver 8.8.8.8:53 -domain docker"
d.run "crosbymichael/skydock",
args: "-v /var/run/docker.sock:/docker.sock --name skydock crosbymichael/skydock -ttl 30 -environment dev -s /docker.sock -domain docker -name skydns"
end
config.vm.provision "shell",
inline: "cd jenkins-ci && fig up -d"
end