-
Notifications
You must be signed in to change notification settings - Fork 0
/
minikube.mk
30 lines (29 loc) · 1.01 KB
/
minikube.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
setup:
# Installs Brew (with Cask) first if it's not present.
command -v brew >/dev/null 2>&1 \
|| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
command -v VirtualBox >/dev/null 2>&1 \
|| brew cask install VirtualBox
command -v kubectl >/dev/null 2>&1 \
|| brew install kubectl
command -v minikube >/dev/null 2>&1 \
|| brew cask install minikube
brew update
# Installing the hypervisor is a different kettle of fish.
brew install xhyve docker-machine-driver-xhyve
sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
start:
minikube start --vm-driver=xhyve --memory 8192
eval $(minikube docker-env)
stop:
minikube stop
eval $(minikube docker-env -u)
show-dashboard:
# Opens up in your browser
minikube dashboard
delete:
minikube delete
destroy:
sudo killall docker-machine-driver-xhyve
sudo rm -r ~/.minikube