From d49607a6d4dfaa588b4fe10e41e338962980220b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Sun, 1 May 2016 18:31:21 +0300 Subject: [PATCH] Add a build script --- build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000000..ce8ad1ab21 --- /dev/null +++ b/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +REPO_PATH="github.com/kubernetes/minikube" + +export GOPATH=${PWD}/gopath +export GO15VENDOREXPERIMENT=1 +export OS=${OS:-$(go env GOOS)} +export ARCH=${ARCH:-$(go env GOARCH)} + +rm -f ${GOPATH}/src/${REPO_PATH} +mkdir -p $(dirname ${GOPATH}/src/${REPO_PATH}) +ln -s ${PWD} $GOPATH/src/${REPO_PATH} + +CGO_ENABLED=0 GOARCH=${ARCH} GOOS=${OS} go build --installsuffix cgo -a -o minikube cli/main.go