5f94e53bea
Change-Id: I4bd581c3ea422e1c9a075a71721413d47fdbdfe4 Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/828902
24 lines
1.0 KiB
Django/Jinja
24 lines
1.0 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block prometheus_openstack_exporter_header %}{% endblock %}
|
|
|
|
{% block prometheus_openstack_exporter_repository_version %}
|
|
ARG prometheus_openstack_exporter_version=1.6.0
|
|
ARG prometheus_openstack_exporter_url=https://github.com/openstack-exporter/openstack-exporter/releases/download/v${prometheus_openstack_exporter_version}/openstack-exporter_${prometheus_openstack_exporter_version}_linux_{{debian_arch}}.tar.gz
|
|
{% endblock %}
|
|
|
|
{% block prometheus_openstack_exporter_install %}
|
|
RUN curl -o /tmp/prometheus_openstack_exporter.tar.gz ${prometheus_openstack_exporter_url} \
|
|
&& mkdir /opt/openstack-exporter \
|
|
&& tar xvf /tmp/prometheus_openstack_exporter.tar.gz -C /opt/openstack-exporter \
|
|
&& rm -f /tmp/prometheus_openstack_exporter.tar.gz
|
|
{% endblock %}
|
|
|
|
{% block prometheus_openstack_exporter_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER prometheus
|