From 0ffeff3099b6a6f60a4d9c406c9ceb157ce7e545 Mon Sep 17 00:00:00 2001 From: Matvey Kukuy Date: Wed, 30 Aug 2023 13:27:08 +0200 Subject: [PATCH] Show build log in the local env (#2919) Added "progress: plain" to show build log while building local env. Otherwise it's just hanging with "RUN pip install" and you have no idea what's going on. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 17de8496..51f67057 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,10 @@ endef # SQLITE_DB_FiLE is set to properly mount the sqlite db file DOCKER_COMPOSE_ENV_VARS := COMPOSE_PROFILES=$(COMPOSE_PROFILES) DB=$(DB) BROKER_TYPE=$(BROKER_TYPE) + +# It's better to output pip log on the fly while building because it takes a lot of time +DOCKER_COMPOSE_ENV_VARS += BUILDKIT_PROGRESS=plain + ifeq ($(DB),$(SQLITE_PROFILE)) DOCKER_COMPOSE_ENV_VARS += SQLITE_DB_FILE=$(SQLITE_DB_FILE) endif @@ -113,8 +117,8 @@ define run_backend_tests endef build-dev-images: ## build the docker images required to run the helm chart locally - docker build ./engine -t $(ENGINE_DOCKER_IMAGE_NAME) --target prod --load - docker build ./grafana-plugin -t $(PLUGIN_DOCKER_IMAGE_NAME) -f ./grafana-plugin/Dockerfile.dev --load + docker build ./engine -t $(ENGINE_DOCKER_IMAGE_NAME) --target prod --load --progress=plain + docker build ./grafana-plugin -t $(PLUGIN_DOCKER_IMAGE_NAME) -f ./grafana-plugin/Dockerfile.dev --load --progress=plain init-k8s: ## create a kind cluster + upload the docker images onto the cluster nodes # piping to true will return a zero exit code in the event that this kind cluster already exists