aboutsummaryrefslogtreecommitdiff
path: root/docker/prometheus/prometheus-cadvisor/Dockerfile.j2
blob: a86183d4b87f9f01061a09dad2def0b7e75a06f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}

{% block prometheus_cadvisor_header %}{% endblock %}

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

{% block prometheus_cadvisor_install %}
ADD prometheus-cadvisor-archive /prometheus-cadvisor-source

RUN cp /prometheus-cadvisor-source /opt/cadvisor \
    && chmod 0755 /opt/cadvisor
{% endblock %}

{{ macros.kolla_patch_sources() }}

{% block prometheus_cadvisor_footer %}{% endblock %}
{% block footer %}{% endblock %}