Created
March 25, 2019 16:00
-
-
Save lpenz/981f9d7db2a5cb3ee62f18adddeaee30 to your computer and use it in GitHub Desktop.
Vagrantfile that installs minkube in a VM and runs it there with vm-driver=none
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "debian/stretch64" | |
# config.vm.box = "debian/buster64" | |
config.vm.provider "libvirt" do |v| | |
v.memory = 2048 | |
v.cpus = 4 | |
end | |
config.vm.provision "shell", inline: <<-EOF | |
set -x -e | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get install -y --no-install-recommends curl apt-transport-https aptitude locales | |
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen | |
locale-gen | |
wget --no-verbose https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
install minikube-linux-amd64 /usr/local/bin/minikube | |
wget --no-verbose -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list | |
apt-get update | |
apt-get install -y --no-install-recommends docker-engine kubectl aptitude | |
sudo usermod -a -G docker $(whoami) | |
newgrp docker | |
minikube config set vm-driver none | |
minikube start vm-driver=none | |
true | |
EOF | |
config.ssh.forward_x11 = true | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment