From 6691b84f6bbba902fd3b3a3a6bf51f464bf744a5 Mon Sep 17 00:00:00 2001 From: Frugan Date: Mon, 17 Jun 2024 23:38:54 +0200 Subject: [PATCH] build: attempt to fix timeout --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3ab7994..a8d13f8 100644 --- a/Makefile +++ b/Makefile @@ -128,7 +128,7 @@ wait: @$(TMP_DIR)/wait-for-it.sh localhost:$(NODE_PORT) --timeout=300 --strict -- echo "Node is up" @echo "Waiting for WordPress to complete setup" - @$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'timeout=300; while [ $$timeout -gt 0 ]; do [ -f $${WORDPRESS_CONF_FILE:-/bitnami/wordpress/wp-config.php} ] && break; echo "Waiting for wp-config.php..."; sleep 5; timeout=$$((timeout - 5)); done; [ $$timeout -gt 0 ]' + @$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'timeout=600; while [ $$timeout -gt 0 ]; do [ -f $${WORDPRESS_CONF_FILE:-/bitnami/wordpress/wp-config.php} ] && break; echo "Waiting for wp-config.php ($$timeout seconds left)..."; sleep 5; timeout=$$((timeout - 5)); done; [ $$timeout -gt 0 ]' up: @echo "Starting docker compose services"