kolla/docker/collectd/Dockerfile.j2
Marcin Juszkiewicz 941d021e09 collectd: pcie-errors is x86-64 only now
Change-Id: Iad7e7ebb1fbf4d14f20960d6257345db71d0e214
2022-02-04 20:39:17 +00:00

84 lines
2.1 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block collectd_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='collectd') }}
{{ macros.enable_extra_repos(['opstools']) }}
{% set collectd_packages = [
'collectd'
] %}
{% if base_package_type == 'rpm' %}
{% set collectd_packages = collectd_packages + [
'collectd-amqp',
'collectd-amqp1',
'collectd-apache',
'collectd-bind',
'collectd-ceph',
'collectd-chrony',
'collectd-connectivity',
'collectd-curl',
'collectd-curl_json',
'collectd-curl_xml',
'collectd-dbi',
'collectd-disk',
'collectd-dns',
'collectd-generic-jmx',
'collectd-ipmi',
'collectd-log_logstash',
'collectd-logparser',
'collectd-mcelog',
'collectd-memcachec',
'collectd-mysql',
'collectd-netlink',
'collectd-openldap',
'collectd-ovs-events',
'collectd-ovs-stats',
'collectd-ping',
'collectd-procevent',
'collectd-python',
'collectd-sensors',
'collectd-smart',
'collectd-snmp',
'collectd-snmp-agent',
'collectd-sysevent',
'collectd-utils',
'collectd-virt',
'collectd-write_http',
'collectd-write_kafka',
'collectd-write_prometheus',
] %}
{% if base_arch =='x86_64' %}
{% set collectd_packages = collectd_packages + [
'collectd-hugepages',
'collectd-iptables',
'collectd-pcie-errors',
'collectd-pmu',
'collectd-rdt',
'collectd-turbostat'
] %}
{% endif %}
{% endif %}
{{ macros.install_packages(collectd_packages | customizable("packages")) }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start \
&& chown -R collectd /var/lib/collectd \
&& chown -R collectd /etc/collectd* \
&& chown -R collectd /var/run/
{% block collectd_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER collectd