Continuous Integration

Using minikube for Continuous Integration

Overview

Most continuous integration environments are already running inside a VM, and may not support nested virtualization.

The docker driver was designed for this use case, as well as the older none driver.

Example

Here is an example, that runs minikube from a non-root user, and ensures that the latest stable kubectl is installed:

  1. curl -LO \
  2. https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
  3. && install minikube-linux-amd64 /tmp/
  4. kv=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
  5. curl -LO \
  6. https://storage.googleapis.com/kubernetes-release/release/$kv/bin/linux/amd64/kubectl \
  7. && install kubectl /tmp/
  8. export MINIKUBE_WANTUPDATENOTIFICATION=false
  9. /tmp/minikube-linux-amd64 start --driver=docker

Last modified April 4, 2020: Change directory case (4593ac355)