44acae3894
This patch fixed build of prometheus-ovn-exporter when building with --image-name-prefix option. Closes-Bug: #2076249 Change-Id: I5ba67d6e4bbe1b6d6caa842715b56720a027dc76
19 lines
532 B
Django/Jinja
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
|