0e8863d77d
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>
23 lines
1012 B
Django/Jinja
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
|