Skip to content

Instantly share code, notes, and snippets.

@TripleDogDare
Last active July 6, 2017 22:42
Show Gist options
  • Save TripleDogDare/200f1c63bec8f6295fb7e4a7d29f9ee4 to your computer and use it in GitHub Desktop.
Save TripleDogDare/200f1c63bec8f6295fb7e4a7d29f9ee4 to your computer and use it in GitHub Desktop.
build minikube
#!/bin/bash
# Based on https://github.com/kubernetes/minikube/blob/master/docs/contributors/build_guide.md
# Eventually this should go into a formula to set up dependencies.
set -euo pipefail
MINIKUBE_REPO="https://github.com/kubernetes/minikube.git"
MINIKUBE_HASH=${1:-}
[ -z "$MINIKUBE_HASH" ] && {
git ls-remote --tags "$MINIKUBE_REPO" | sort -k2 -V
>&2 echo "Please select a hash to build: $0 <hash>"
exit 1
}
export GOPATH=$(mktemp -d)
SRC_DIR="$GOPATH/src/k8s.io"
git clone "$MINIKUBE_REPO" "$SRC_DIR"
cd "$SRC_DIR"
git checkout -q "$MINIKUBE_HASH"
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment