Make sure blocky bootstrap never fails

We want to make sure the blocky task is always started, even if mysql isn't reached
This commit is contained in:
IamTheFij 2024-08-30 11:27:28 -07:00
parent f5a180f019
commit 1c783dbdfe

View File

@ -321,11 +321,9 @@ EOF
config { config {
image = "mariadb:10" image = "mariadb:10"
args = [ args = [
"/usr/bin/timeout",
"2m",
"/bin/bash", "/bin/bash",
"-c", "-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",
] ]
} }