kolla/docker/collectd/Dockerfile.j2
Matthias Runge 3f8db42f1f collectd: turbostat is x86 only, it fails on Arm64
Change-Id: Icde3d4605200a1d2a8bad00922d726655632b8ca
2018-06-27 14:50:54 +02:00

62 lines
1.6 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block collectd_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='collectd') }}
{% set collectd_packages = [
'collectd'
] %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set collectd_packages = collectd_packages + [
'collectd-amqp1',
'collectd-apache',
'collectd-ceph',
'collectd-connectivity',
'collectd-disk',
'collectd-ipmi',
'collectd-mysql',
'collectd-netlink',
'collectd-ovs-events',
'collectd-ovs-stats',
'collectd-ping',
'collectd-procevent',
'collectd-python',
'collectd-smart',
'collectd-snmp-agent',
'collectd-sysevent',
'collectd-utils',
'collectd-virt',
'collectd-write_prometheus',
'python-collectd-gnocchi'
] %}
{% if base_arch =='x86_64' %}
{% set collectd_packages = collectd_packages + [
'collectd-hugepages',
'collectd-rdt',
'collectd-turbostat'
] %}
{% endif %}
# make sure, collectd is pulled from centos-opstools
RUN yum-config-manager --disable epel
{% 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