From 6f90c04b1bee2765742f540bd5922f3e3f62c355 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Thu, 6 Mar 2025 16:16:26 +0100 Subject: [PATCH] build(Makefile): only call make in containers when appropriate; use SET_IMAGE for postgres --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d49ce7f13..65e21a7bc 100644 --- a/Makefile +++ b/Makefile @@ -144,7 +144,7 @@ start: %-postgres: SERVICE=postgres %-postgres: SERVICE_VARIANT=postgres %-postgres: BASE_PORTS = "PGPORT=5432" -%-postgres: IMAGE=localhost/fradrive/postgres +%-postgres: SET_IMAGE=localhost/fradrive/postgres .PHONY: %-memcached %-memcached: SERVICE=memcached @@ -243,6 +243,7 @@ endif IMAGE="$(SET_IMAGE)" ; \ else \ IMAGE=$(IMAGE) ; \ + MAKECALL="make -- --$(JOB)-$(SERVICE_VARIANT) IN_CONTAINER=true" ; \ fi ; \ CONTAINER_ID=`$(CONTAINER_BGRUN) \ -v $(PWD):$(PROJECT_DIR):rw \ @@ -253,7 +254,7 @@ endif --env SRC=$(SRC) \ --name $${CONTAINER_NAME} \ $${IMAGE} \ - make -- --$(JOB)-$(SERVICE_VARIANT) IN_CONTAINER=true \ + $${MAKECALL} \ ` ; \ printf "CONTAINER_ID=$${CONTAINER_ID}" >> "$(CONTAINER_FILE)" ; \ if [[ "true" == "$(CONTAINER_ATTACHED)" ]] ; then \