Skip to content

Commit

Permalink
Added Linux CI example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-prindle committed Jun 22, 2017
1 parent 31d943e commit a37e1c3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,34 @@ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/miniku
### Windows
Download the [minikube-windows-amd64.exe](https://storage.googleapis.com/minikube/releases/latest/minikube-windows-amd64.exe) file, rename it to `minikube.exe` and add it to your path

### Linux CI Installation Which Supports Running in a VM (example w/ kubectl installation)
```shell
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube
curl -Lo kubectl 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

export MINIKUBE_WANTUPDATENOTIFICATION=false
export MINIKUBE_WANTREPORTERRORPROMPT=false
export MINIKUBE_HOME=$HOME
export CHANGE_MINIKUBE_NONE_USER=true
mkdir $HOME/.kube || true
touch $HOME/.kube/config

export KUBECONFIG=$HOME/.kube/config
sudo -E ./minikube start --vm-driver=none --use-vendored-driver

# this for loop waits until kubectl can access the api server that minikube has created
for i in {1..150} # timeout for 5 minutes
do
./kubectl get po &> /dev/null
if [ $? -ne 1 ]; then
break
fi
sleep 2
done

# kubectl commands are now able to interact with minikube cluster
```

### Other ways to install:

* [Linux] [Arch Linux AUR](https://aur.archlinux.org/packages/minikube/)
Expand Down

0 comments on commit a37e1c3

Please sign in to comment.