aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorSeunghun Lee <seunghun@stackhpc.com>2025-10-01 11:38:42 +0100
committerSeunghun Lee <seunghun@stackhpc.com>2025-10-03 14:47:05 +0100
commit683ae79657532243a31ead1b35e82877f1778991 (patch)
tree344357ba6a951c5f84c7161847e1331702713582 /docker
parent8b121529cbcfeb20f75114873b0d2b46ffde1e68 (diff)
downloadkolla-683ae79657532243a31ead1b35e82877f1778991.tar.gz
kolla-683ae79657532243a31ead1b35e82877f1778991.zip
Add MariaDB healthcheck.sh
MariaDB clustercheck has not been updated for a long time. Since the script uses ``mysql*`` commands but MariaDB 11.4 (next LTS version) does not support them, it will not work once MariaDB gets upgraded. Added alternative MariaDB container health check script ``healthcheck.sh`` from official MariaDB docker images. [1] This script uses ``mariadb*`` commands, so it's prone to MariaDB upgrade. [1] https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/installing-mariadb/binary-packages/automated-mariadb-deployment-and-administration/docker-and-mariadb/using-healthcheck-sh Change-Id: I7816edb6ebd8c95412a6833ea20b32193c2d1415 Signed-off-by: Seunghun Lee <seunghun@stackhpc.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/mariadb/mariadb-base/Dockerfile.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/mariadb/mariadb-base/Dockerfile.j2 b/docker/mariadb/mariadb-base/Dockerfile.j2
index ddf6d50d9..51cdadb29 100644
--- a/docker/mariadb/mariadb-base/Dockerfile.j2
+++ b/docker/mariadb/mariadb-base/Dockerfile.j2
@@ -33,6 +33,12 @@ ARG mariadb_clustercheck_url=https://src.fedoraproject.org/rpms/mariadb/raw/${ma
RUN curl -o /usr/bin/clustercheck ${mariadb_clustercheck_url} \
&& chmod 755 /usr/bin/clustercheck
+{% block mariadb_healthcheck %}
+ENV MARIADB_VERSION=10.11
+ADD plugins-archive /
+RUN install -m 755 /plugins/mariadb-base-plugin-mariadb-docker-archive*/$MARIADB_VERSION/healthcheck.sh /usr/bin/healthcheck.sh
+{% endblock %}
+
{{ macros.kolla_patch_sources() }}
{% block mariadb_base_footer %}{% endblock %}