compose: fix healthcheck of mariadb (#1)

ariadb 11.X removed the mysql command and is now using the mariadb command instead.

This PR changes the behavior of the healthcheck inside compose.yml accordingly.

The mysql command was a symlink beginning with 10.5 to mariadb command (see https://mariadb.com/kb/en/changes-and-improvements-in-mariadb-10-5/#binaries-named-mariadb-mysql-symlinked)

Without that PR the healthcheck of mysql/maridb is not gonna be healthy on versions 11.X.

PR from https://github.com/simatec/piler-docker/pull/20

Reviewed-on: #1
This commit is contained in:
Phil 2024-09-26 20:10:22 +02:00
parent e396da50a7
commit fd8e5a81a5
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ services:
- MARIADB_DISABLE_UPGRADE_BACKUP=1
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
healthcheck:
test: mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
test: mariadb --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
interval: "60s"
timeout: "5s"
start_period: "15s"

View file

@ -49,7 +49,7 @@ services:
- MARIADB_DISABLE_UPGRADE_BACKUP=1
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
healthcheck:
test: mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
test: mariadb --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
interval: "60s"
timeout: "5s"
start_period: "15s"