From 2657c2f96fdd2cf5920f33dae1df01778ba18888 Mon Sep 17 00:00:00 2001 From: John Schnake Date: Wed, 23 Oct 2019 14:15:03 -0500 Subject: [PATCH] Use newer `kind load docker-image` command (#459) Updates the logic for `kind-push` in the makefile to use the new, simple command provided by kind. Fixes #458 --- makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/makefile b/makefile index be69542..33ee843 100644 --- a/makefile +++ b/makefile @@ -48,10 +48,7 @@ endif # pushses the current dev version to the kind cluster. kind-push: - docker save $(IMAGE_NAME) -o kube-bench.tar.gz; \ - docker cp kube-bench.tar.gz $(KIND_CONTAINER_NAME):/kube-bench.tar.gz; \ - docker exec $(KIND_CONTAINER_NAME) docker load -i /kube-bench.tar.gz; - -rm -f kube-bench.tar.gz + kind load docker-image $(IMAGE_NAME) --name $(KIND_PROFILE) # runs the current version on kind using a job and follow logs kind-run: KUBECONFIG = "$(shell kind get kubeconfig-path --name="$(KIND_PROFILE)")"