-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (25 loc) · 998 Bytes
/
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
# 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
DOCKER_VERSION = "17.03.1-ce"
WHALEBREW_VERSION = "0.1.0"
Vagrant.configure(2) do |config|
config.vm.define "whalebrew-barge"
config.vm.box = "ailispaw/barge"
config.vm.synced_folder ".", "/vagrant", id: "vagrant"
config.vm.provision :shell do |sh|
sh.privileged = false
sh.inline = <<-EOT
sudo /etc/init.d/docker restart #{DOCKER_VERSION}
sudo wget -qO /opt/bin/whalebrew "https://github.com/bfirsh/whalebrew/releases/download/#{WHALEBREW_VERSION}/whalebrew-$(uname -s)-$(uname -m)"
sudo chmod +x /opt/bin/whalebrew
echo "\nexport WHALEBREW_INSTALL_PATH=/opt/bin" >> ~/.bashrc
EOT
end
end