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

{% block prometheus_elasticsearch_exporter_header %}{% endblock %}

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

{% block prometheus_elasticsearch_exporter_install %}
ADD prometheus-elasticsearch-exporter-archive /prometheus-elasticsearch-exporter-source

RUN ln -s /prometheus-elasticsearch-exporter-source/* prometheus-elasticsearch-exporter \
    && mkdir -p /opt/elasticsearch_exporter \
    && cp /prometheus-elasticsearch-exporter/elasticsearch_exporter /opt/elasticsearch_exporter/
{% endblock %}

{{ macros.kolla_patch_sources() }}

{% block prometheus_elasticsearch_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER prometheus