kolla/docker/collectd/Dockerfile.j2
Joe Talerico 9bde747dab Additional packages to Dockefile
Adding the missing packages to the dockerfile

Change-Id: I75981c9691bddcccda6126aa9f4a7fa7257e196e
2018-04-23 09:21:00 -04:00

54 lines
1.4 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-apache',
'collectd-ceph',
'collectd-disk',
'collectd-mysql',
'collectd-ovs-events',
'collectd-ovs-stats',
'collectd-ping',
'collectd-python',
'collectd-turbostat',
'collectd-utils',
'collectd-virt',
'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