Add Vagrantfile

k3s-v1.14.6
Erik Wilson 2019-08-19 09:22:04 -07:00
parent b884f522b9
commit 750881c0ab
1 changed files with 24 additions and 0 deletions

24
Vagrantfile vendored Normal file
View File

@ -0,0 +1,24 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-19.04"
config.vm.provider "virtualbox" do |v|
v.cpus = 4
v.memory = 8192
end
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/go/src/k8s.io/kubernetes/", type: "nfs"
config.vm.provision "shell", inline: <<-SHELL
set -e -x -u
apt-get update -y || (sleep 40 && apt-get update -y)
apt-get install -y git gcc-multilib gcc-mingw-w64 jq git-secrets
wget -qO- https://storage.googleapis.com/golang/go1.12.9.linux-amd64.tar.gz | tar -C /usr/local -xz
echo 'export GOPATH=/go' >> /root/.bashrc
echo 'ulimit -n 65535' >> /root/.bashrc
GOPATH=/go /usr/local/go/bin/go get github.com/rancher/trash && rm -rf /go/src/github.com/rancher
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> /root/.bashrc
SHELL
end