kolla/docker/mariadb/mariadb-base/Dockerfile.j2
Michal Arbet acc23bb607 Move clustercheck script to mariadb-base
This patch moves clustercheck script to
mariadb-base image, so it can be used for
mariadb's docker healthcheck.

Change-Id: I4abcbf67a84b7e96f42cd5e1324ff79e47eb1cb5
2021-08-31 16:14:52 +02:00

31 lines
868 B
Django/Jinja

FROM {{ namespace }}/{{ infra_image_prefix }}base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block mariadb_base_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='mysql') }}
{{ macros.enable_extra_repos(['mariadb']) }}
{% if base_package_type == 'rpm' %}
{% set mariadb_base_packages = [
'mariadb',
] %}
{% elif base_package_type == 'deb' %}
{% set mariadb_base_packages = [
'mariadb-client',
] %}
{% endif %}
{{ macros.install_packages(mariadb_base_packages | customizable("packages")) }}
RUN curl -o /usr/bin/clustercheck https://src.fedoraproject.org/rpms/mariadb/raw/10.3/f/clustercheck.sh \
&& chmod 755 /usr/bin/clustercheck
{% block mariadb_base_footer %}{% endblock %}