aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/prometheus/prometheus-libvirt-exporter/Dockerfile.j2
blob: c32b2f8c75c7128249f097a9cf88206701d67625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}"
{% endblock %}

{% import "macros.j2" as macros with context %}

{% block prometheus_libvirt_exporter_header %}{% endblock %}

{{ macros.install_packages(prometheus_libvirt_exporter_packages | customizable("packages")) }}

{% block prometheus_libvirt_exporter_install %}
ADD prometheus-libvirt-exporter-archive /prometheus-libvirt-exporter-source

RUN ln -s /prometheus-libvirt-exporter-source/* prometheus-libvirt-exporter \
    && cp /prometheus-libvirt-exporter/prometheus-libvirt-exporter /opt/libvirt-exporter

{% endblock %}

{{ macros.kolla_patch_sources() }}

{% block prometheus_libvirt_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER root