Refactor MariaDB role to stabilize initialization:

- Unify encoding/collation variables
- Improve connection logic for mysql_db module
- Switch to PyMySQL install path to avoid mysqlclient build failures
- Update healthcheck to container-friendly CMD-SHELL usage
- Normalize network and port configuration

These changes were applied during CI/CD pipeline debugging. The root CI/CD connectivity issue is still not fixed.

Reference: https://chatgpt.com/share/6931adf0-ce7c-800f-86f3-f867fbd3191f
This commit is contained in:
2025-12-04 16:52:43 +01:00
parent 5f0dfa616f
commit 86dd36930f
6 changed files with 75 additions and 39 deletions

View File

@@ -1,4 +1,4 @@
# Check out the README.md file for more information, why this encodings and collations are used
database_encoding: "utf8mb4"
database_collation: "utf8mb4_unicode_ci"
MARIADB_ENCODING: "utf8mb4"
MARIADB_COLLATION: "utf8mb4_unicode_ci"
database_init: false # When true a database is initialized