Add a build script

pull/34/head
Lucas Käldström 2016-05-01 18:31:21 +03:00
parent 1b12968101
commit d49607a6d4
1 changed files with 14 additions and 0 deletions

14
build.sh Executable file
View File

@ -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