2514bcf0c3
Because we use rootwrap in a venv we need to update the exec_dirs. Without doing this *some* commands will break for various reasons that I won't get into in this review in detail. But this is required for neutron-l3-agent in a container + drop-root. Change-Id: I1a09f7188fdd501b7ce251d9f2fb0e5b10222142 Partially-Implements: blueprint drop-root
27 lines
1018 B
Django/Jinja
27 lines
1018 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
openstack-ceilometer-common \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD ceilometer-base-archive /ceilometer-base-source
|
|
RUN ln -s ceilometer-base-source/* ceilometer \
|
|
&& useradd --user-group ceilometer \
|
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /ceilometer \
|
|
&& mkdir -p /etc/ceilometer /var/log/ceilometer /home/ceilometer \
|
|
&& cp -r /ceilometer/etc/ceilometer/* /etc/ceilometer/ \
|
|
&& chown -R ceilometer: /etc/ceilometer /var/log/ceilometer /home/ceilometer \
|
|
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/ceilometer/rootwrap.conf
|
|
|
|
{% endif %}
|
|
|
|
RUN usermod -a -G kolla ceilometer
|