-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
28 lines (26 loc) · 1.14 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
apt-get update
apt-get install -y emacs vim nano curl apt-transport-https \
ca-certificates gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce
curl -L https://s3.amazonaws.com/downloads.wercker.com/cli/stable/linux_amd64/wercker -o /usr/local/bin/wercker
chmod u+x /usr/local/bin/wercker
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "debian/contrib-stretch64"
config.vm.box_version = "9.1.0"
config.vm.provision "shell", inline: $script, privileged: true
config.vm.network :private_network, ip: "172.17.8.200"
config.vm.network "forwarded_port", guest: 8080, host: 8081
end