-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (27 loc) · 1.01 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
# A dummy plugin for Barge to set hostname and network correctly at the very first `vagrant up`
module VagrantPlugins
module GuestLinux
class Plugin < Vagrant.plugin("2")
guest_capability("linux", "change_host_name") { Cap::ChangeHostName }
guest_capability("linux", "configure_networks") { Cap::ConfigureNetworks }
end
end
end
Vagrant.configure(2) do |config|
config.vm.define "jubatus-barge"
config.vm.box = "ailispaw/barge"
config.vm.hostname = "jubatus-barge"
config.vm.synced_folder ".", "/vagrant"
config.vm.provision :docker do |docker|
docker.pull_images "ailispaw/ubuntu-essential:14.04-nodoc"
docker.build_image "/vagrant", args: "-t ailispaw/jubatus"
docker.build_image "/vagrant", args: "-t ailispaw/jubatus-client -f /vagrant/Dockerfile.client"
end
config.vm.provision :shell, run: "always" do |sh|
sh.privileged = false
sh.inline = <<-EOT
sudo pkg install git
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
EOT
end
end