mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-02-16 17:42:05 +00:00
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
This commit is contained in:
parent
b009520ea3
commit
2657c2f96f
5
makefile
5
makefile
@ -48,10 +48,7 @@ endif
|
|||||||
|
|
||||||
# pushses the current dev version to the kind cluster.
|
# pushses the current dev version to the kind cluster.
|
||||||
kind-push:
|
kind-push:
|
||||||
docker save $(IMAGE_NAME) -o kube-bench.tar.gz; \
|
kind load docker-image $(IMAGE_NAME) --name $(KIND_PROFILE)
|
||||||
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
|
|
||||||
|
|
||||||
# runs the current version on kind using a job and follow logs
|
# runs the current version on kind using a job and follow logs
|
||||||
kind-run: KUBECONFIG = "$(shell kind get kubeconfig-path --name="$(KIND_PROFILE)")"
|
kind-run: KUBECONFIG = "$(shell kind get kubeconfig-path --name="$(KIND_PROFILE)")"
|
||||||
|
Loading…
Reference in New Issue
Block a user