From 7024d4d51b9c20f75b431b85993e8a8e3f330d72 Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Wed, 7 Oct 2020 12:47:45 +0200 Subject: [PATCH] chore(tric-stack.yml) restore curl-based wait --- tric-stack.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tric-stack.yml b/tric-stack.yml index 81d78d3..a9946c9 100644 --- a/tric-stack.yml +++ b/tric-stack.yml @@ -135,7 +135,8 @@ services: - -c - | printf "Waiting for WordPress site "; - sleep 20 + until $$(curl -o /dev/null -f -s -I wordpress.test:80); do printf '.' && sleep 1; done + echo -e -n " \e[32mdone\e[0m\n" echo "Executing command: ${TRIC_SITE_CLI_COMMAND:-core version}" docker-entrypoint.sh ${TRIC_SITE_CLI_COMMAND:-core version} volumes: