kolla/docker/prometheus/prometheus-mysqld-exporter/Dockerfile.j2
Michal Nasiadka 750a137815 Move curl sources to sources.py
Move most curl sources to sources.py, so it can be automatically
updated in future.

This also makes overriding the versions/locations/sha256 easier.

Change-Id: Ib3497fe96162ae190e5c113cacaaa3ef8334f590
2024-02-21 08:26:52 +00:00

20 lines
658 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block mysqld_exporter_header %}{% endblock %}
{% block mysqld_exporter_install %}
ADD prometheus-mysqld-exporter-archive /prometheus-mysqld-exporter-source
RUN ln -s /prometheus-mysqld-exporter-source/* prometheus-mysqld-exporter \
&& mkdir -p /opt/mysqld_exporter \
&& cp /prometheus-mysqld-exporter/mysqld_exporter /opt/mysqld_exporter/
{% endblock %}
{% block mysqld_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER prometheus