From c493309c92d1aab254fb86fd4a1325282dc64c90 Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Mon, 16 Jul 2018 22:25:47 -0400 Subject: [PATCH] start minikube before trying to build the image --- build/dev-env.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/dev-env.sh b/build/dev-env.sh index 924024d616..1e49f89920 100755 --- a/build/dev-env.sh +++ b/build/dev-env.sh @@ -28,15 +28,17 @@ export REGISTRY=${REGISTRY:-ingress-controller} DEV_IMAGE=${REGISTRY}/nginx-ingress-controller:${TAG} -echo "[dev-env] building container" -make build container - if [ -z "${SKIP_MINIKUBE_START}" ]; then test $(minikube status | grep Running | wc -l) -eq 2 && $(minikube status | grep -q 'Correctly Configured') || minikube start \ --extra-config=kubelet.sync-frequency=1s \ --extra-config=apiserver.authorization-mode=RBAC + + eval $(minikube docker-env) fi +echo "[dev-env] building container" +make build container + docker save "${DEV_IMAGE}" | (eval $(minikube docker-env) && docker load) || true echo "[dev-env] installing kubectl"