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.
This commit is contained in:
parent
26dee30cfa
commit
0ffeff3099
1 changed files with 6 additions and 2 deletions
8
Makefile
8
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue