[TESTS] Speedup container startup

This commit is contained in:
Hugo Sales 2022-10-29 16:57:40 +01:00
parent fe21796e79
commit 334de7c739
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -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