kolla/docker/prometheus/prometheus-openstack-exporter/Dockerfile.j2
Jorge Niedbalski 0e8863d77d Bump prometheus_openstack_exporter to 1.0.0
v1.0.0 has been released, use that release as a
base for prometheus_openstack_exporter.

Change-Id: I6b8bb18633fd277f3ab46788fa76bb4af67f5942
Signed-off-by: Jorge Niedbalski <jnr@metaklass.org>
2020-03-27 16:04:54 -03:00

23 lines
1012 B
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 %}
ENV prometheus_openstack_exporter_version=1.0.0
{% endblock %}
{% block prometheus_openstack_exporter_install %}
RUN curl -sSL -o /tmp/prometheus_openstack_exporter.tar.gz 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 \
&& tar xvf /tmp/prometheus_openstack_exporter.tar.gz -C /opt/ \
&& rm -f /tmp/prometheus_openstack_exporter.tar.gz \
&& ln -s /opt/openstack-exporter* /opt/openstack-exporter
{% endblock %}
{% block prometheus_openstack_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER prometheus