cd2915463d
Change-Id: I1df0474844ccc804c46219fbcd0784c75b9eec7a
32 lines
889 B
Django/Jinja
32 lines
889 B
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-disk'
|
|
] %}
|
|
|
|
{% 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
|