kolla/docker/collectd/Dockerfile.j2
Marcin Juszkiewicz 1dfd937cba CentOS: disable more repos
'messaging-rabbitmq' and 'opstools' are enabled by RDO
delorean-deps.repo file

'influxdb' was also enabled

Depends-On: https://review.opendev.org/728687

Change-Id: Ibb0a7edc9e5632c1b89a7d52601f55a223b49dfb
2020-05-17 11:34:12 +00:00

96 lines
2.4 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-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-dpdk_telemetry',
'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-sensubility',
'collectd-smart',
'collectd-snmp',
'collectd-snmp-agent',
'collectd-sysevent',
'collectd-utils',
'collectd-virt',
'collectd-write_http',
'collectd-write_kafka',
'collectd-write_prometheus',
'python3-sqlalchemy-collectd'
] %}
{% if base_arch in ['x86_64', 'ppc64le'] %}
{% set collectd_packages = collectd_packages + [
'collectd-iptables'
] %}
{% endif %}
{% if base_arch =='x86_64' %}
{% set collectd_packages = collectd_packages + [
'collectd-hugepages',
'collectd-pmu',
'collectd-rdt',
'collectd-turbostat'
] %}
{% endif %}
{% if base_arch != 's390x' %}
{% set collectd_packages = collectd_packages + [
'collectd-pcie-errors'
] %}
{% 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