fix: support utf8mb4 across MySQL and MariaDB
Test / test (push) Canceled after 6m35s
Build and publish image / image (push) Successful in 13m42s

This commit is contained in:
bryanpedini committed 2026-11-20 15:14:28 +01:00
1 parent cce17c5fa4
commit d34894c9cd
28 files changed
+224 -121

No files matched your search

+4 -1
View File
@@ -69,7 +69,10 @@ mysql_id=$(docker create --name "$mysql" --network "$network_id" --network-alias
--env MYSQL_ROOT_PASSWORD="$root_password" "$MYSQL_IMAGE")
docker start "$mysql_id" >/dev/null
attempt=0
until docker exec --env MYSQL_PWD="$root_password" "$mysql_id" mysql --host=127.0.0.1 --user=root --execute 'SELECT 1' >/dev/null 2>&1; do
until docker exec --env MYSQL_PWD="$root_password" "$mysql_id" sh -c '
client=$(command -v mariadb || command -v mysql)
exec "$client" --host=127.0.0.1 --user=root --execute "SELECT 1"
' >/dev/null 2>&1; do
attempt=$((attempt + 1))
if [ "$attempt" -ge 120 ]; then
echo "mysql did not become ready" >&2