![Michal Nasiadka](/assets/img/avatar_default.png)
Move most curl sources to sources.py, so it can be automatically updated in future. This also makes overriding the versions/locations/sha256 easier. Change-Id: Ib3497fe96162ae190e5c113cacaaa3ef8334f590
22 lines
734 B
Django/Jinja
22 lines
734 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_mtail_header %}{% endblock %}
|
|
|
|
{% block prometheus_mtail_install %}
|
|
ADD prometheus-mtail-archive /prometheus-mtail-source
|
|
|
|
RUN cp /prometheus-mtail-source/* /opt/
|
|
{% endblock %}
|
|
|
|
{% block prometheus_mtail_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
# NOTE(dszumski): We run as root so that mtail can scrape root owned logs
|
|
# such as /var/log/secure which are mounted into the container as read only
|
|
# for auditing purposes. Longer term we should use a more secure mechanism
|
|
# for tailing these logs.
|
|
USER root
|