27bab79096
Obtain binaries from encrypted source when we're unable to check for their signatures. This should provide better security than downloading the files over HTTP but does not replace signature verification or file integrity check. Related-Bug: #1791674 Change-Id: I7d6eed9ab14ceb130ea4f5f03d893ddaaa0a7acd
36 lines
1.1 KiB
Django/Jinja
36 lines
1.1 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block prometheus_cadvisor_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% block prometheus_cadvisor_repository_version %}
|
|
ENV prometheus_cadvisor_version=0.27.4
|
|
{% endblock %}
|
|
|
|
{% if base_arch in ['x86_64'] %}
|
|
|
|
{% block prometheus_cadvisor_install %}
|
|
RUN curl -ssL -o /opt/cadvisor https://github.com/google/cadvisor/releases/download/v${prometheus_cadvisor_version}/cadvisor && chmod 0755 /opt/cadvisor
|
|
{% endblock %}
|
|
|
|
{% else %}
|
|
|
|
{% if base_distro in ['debian'] %}
|
|
|
|
{% set cadvisor_packages = [
|
|
'libjs-bootstrap',
|
|
'libjs-jquery',
|
|
'https://snapshot.debian.org/archive/debian/20180503T060640Z/pool/main/c/cadvisor/cadvisor_0.27.1+dfsg2-1_arm64.deb'
|
|
] %}
|
|
|
|
{{ macros.install_packages(cadvisor_packages | customizable("packages")) }}
|
|
RUN ln -s /usr/bin/cadvisor /opt/cadvisor
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% block prometheus_cadvisor_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|