From 1c783dbdfe33533ea7aee5f86589780d11af302c Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 30 Aug 2024 11:27:28 -0700 Subject: [PATCH] Make sure blocky bootstrap never fails We want to make sure the blocky task is always started, even if mysql isn't reached --- core/blocky/blocky.nomad | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/blocky/blocky.nomad b/core/blocky/blocky.nomad index 31fd76a..aeda4a3 100644 --- a/core/blocky/blocky.nomad +++ b/core/blocky/blocky.nomad @@ -321,11 +321,9 @@ EOF config { image = "mariadb:10" args = [ - "/usr/bin/timeout", - "2m", "/bin/bash", "-c", - "until /usr/bin/mysql --defaults-extra-file=$${NOMAD_SECRETS_DIR}/my.cnf < $${NOMAD_SECRETS_DIR}/bootstrap.sql; do sleep 10; done", + "/usr/bin/timeout 2m /bin/bash -c \"until /usr/bin/mysql --defaults-extra-file=$${NOMAD_SECRETS_DIR}/my.cnf < $${NOMAD_SECRETS_DIR}/bootstrap.sql; do sleep 10; done\" || true", ] }