From 334de7c739a931ea6b3f6c2be7a00ae5fc123f4b Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 29 Oct 2022 16:57:40 +0100 Subject: [PATCH] [TESTS] Speedup container startup --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e5420cb853..1a2fe20424 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ database-force-schema-update: docker exec -it $(call translate-container-name,$(strip $(DIR))_php_1) sh -c "/var/www/social/bin/console doctrine:schema:update --dump-sql --force" tooling-docker: .PHONY - @cd docker/tooling && docker-compose up -d --build > /dev/null 2>&1 + @sh -c 'if [ ! docker container inspect $(call translate-container-name,tooling_php_1) > /dev/null 2>&1 ]; then cd docker/tooling && docker-compose up -d --build > /dev/null 2>&1; fi' stop-tooling: .PHONY cd docker/tooling && docker-compose down