Make the localkube download support compression.
parent
182601a357
commit
5a8e107045
9
Makefile
9
Makefile
|
@ -24,9 +24,8 @@ clean:
|
|||
rm -rf $(BUILD_DIR)
|
||||
|
||||
gopath:
|
||||
rm -rf $(GOPATH)
|
||||
mkdir -p $(shell dirname $(GOPATH)/src/$(REPOPATH))
|
||||
ln -s $(shell pwd) $(GOPATH)/src/$(REPOPATH)
|
||||
ln -s -f $(shell pwd) $(GOPATH)/src/$(REPOPATH)
|
||||
|
||||
.PHONY: minikube
|
||||
minikube: minikube-$(GOOS)-$(GOARCH)
|
||||
|
@ -46,6 +45,12 @@ localkube-$(GOOS)-$(GOARCH): gopath
|
|||
integration: minikube
|
||||
go test -v ./test/integration --tags=integration
|
||||
|
||||
localkube-incremental:
|
||||
GOPATH=/go CGO_ENABLED=1 GOBIN=$(shell pwd)/$(BUILD_DIR) go install ./cmd/localkube
|
||||
|
||||
docker/localkube:
|
||||
docker run -w /go/src/k8s.io/minikube -v $(shell pwd):/go/src/k8s.io/minikube golang:1.6 make localkube-incremental
|
||||
|
||||
.PHONY: test
|
||||
test: gopath
|
||||
./test.sh
|
||||
|
|
|
@ -5,7 +5,7 @@ import "fmt"
|
|||
var startCommand = `sudo killall localkube || true
|
||||
# Download and install localkube, if it doesn't exist yet.
|
||||
if [ ! -e /usr/local/bin/localkube ]; then
|
||||
sudo curl -L %s -o /usr/local/bin/localkube
|
||||
sudo curl --compressed -L %s -o /usr/local/bin/localkube
|
||||
sudo chmod a+x /usr/local/bin/localkube;
|
||||
fi
|
||||
# Fetch easy-rsa.
|
||||
|
|
Loading…
Reference in New Issue