Skip to content

Commit

Permalink
use experimental minikube
Browse files Browse the repository at this point in the history
see kubernetes/minikube#1542

this isn't working.
  • Loading branch information
boz committed Sep 8, 2017
1 parent 0ba941b commit 1a41b84
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/.vagrant
/*.log
/vendor/*
/_build/*
!/vendor/vendor.json

24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ DOCKER_IMAGE ?= circumspect

IMG_LDFLAGS := -w -linkmode external -extldflags "-static"

# see https://github.com/kubernetes/minikube/pull/1542
MINIKUBE_ISO_URL := https://storage.googleapis.com/minikube-builds/1542/minikube-testing.iso
MINIKUBE_URL := gs://minikube-builds/1542/minikube-$(shell uname -s | tr A-Z a-z)-amd64
MINIKUBE := _build/minikube

build:
go build .

Expand All @@ -25,12 +30,23 @@ install-libs:
integration: image
docker-compose up --build

$(MINIKUBE):
mkdir -p $(shell dirname $(MINIKUBE))
gsutil cp $(MINIKUBE_URL) $(MINIKUBE)
chmod a+x $(MINIKUBE)

minikube-start: $(MINIKUBE)
$(MINIKUBE) start --iso-url=$(MINIKUBE_ISO_URL)

minikube-install-kubectl:
minikube ssh -- curl -LO https://storage.googleapis.com/kubernetes-release/release/$$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
minikube ssh -- chmod a+x ./kubectl
$(MINIKUBE) ssh -- curl -LO https://storage.googleapis.com/kubernetes-release/release/$$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
$(MINIKUBE) ssh -- chmod a+x ./kubectl

minikube-install-circumspect: build-linux
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $$($(MINIKUBE) ssh-key) circumspect-linux docker@$$($(MINIKUBE) ip):circumspect

minikube-install-circumspect:
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $$(minikube ssh-key) circumspect-linux docker@$$(minikube ip):
minikube-install-image:
eval $$($(MINIKUBE) docker-env) && docker build -t $(DOCKER_IMAGE) .

clean:
rm circumspect circumspect-linux 2>/dev/null || true
Expand Down

0 comments on commit 1a41b84

Please sign in to comment.