Skip to content

Commit

Permalink
Add Vagrantfile
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwilson authored and brandond committed Sep 16, 2021
1 parent cb4f3b0 commit c4ebe19
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-20.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 "file", source: "~/.gitconfig", destination: ".gitconfig"
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.15.linux-amd64.tar.gz | tar -C /usr/local -xz
echo 'export GOPATH=/go' >> /root/.bashrc
echo 'ulimit -n 65535' >> /root/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> /root/.bashrc
cp .gitconfig /root/
SHELL
end

0 comments on commit c4ebe19

Please sign in to comment.