kolla/docker/prometheus/prometheus-ovn-exporter/Dockerfile.j2
Michal Arbet 44acae3894 Fix build of prometheus-ovn-exporter
This patch fixed build of prometheus-ovn-exporter
when building with --image-name-prefix option.

Closes-Bug: #2076249
Change-Id: I5ba67d6e4bbe1b6d6caa842715b56720a027dc76
2024-08-07 16:43:07 +02:00

19 lines
532 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_ovn_exporter_header %}{% endblock %}
{% block prometheus_ovn_exporter_install %}
ADD prometheus-ovn-exporter-archive /prometheus-ovn-exporter-source
RUN cp /prometheus-ovn-exporter-source/* /opt/
{% endblock %}
{% block prometheus_ovn_exporter_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER prometheus