Merge "Add MariaDB healthcheck.sh"

This commit is contained in:
Zuul
2025-10-06 09:46:45 +00:00
committed by Gerrit Code Review
3 changed files with 19 additions and 0 deletions

View File

@@ -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 %}

View File

@@ -193,6 +193,11 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/openstack/manila/'
'manila-${openstack_branch}.tar.gz')},
'mariadb-base-plugin-mariadb-docker': {
# NOTE(seunghun1ee): This repo is needed to get MariaDB healthcheck.sh
'type': 'git',
'reference': 'master',
'location': ('https://github.com/MariaDB/mariadb-docker')},
'masakari-base': {
'type': 'url',
'location': ('$tarballs_base/openstack/masakari/'

View File

@@ -0,0 +1,8 @@
---
features:
- |
Added new MariaDB container health check script ``healthcheck.sh``.
This script is from official docker images of MariaDB.
This script is planned to replace current health check script
``clustercheck.sh`` to keep compatibility with newer MariaDB releases.