kolla-ansible/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2
Sam Yaple e13cb31ccb Unify Centos and Ubuntu Source Install - Ceilometer
A change merged in the base allows for Centos and Ubuntu to install
all python things to the same locations. This updates the source
section to reflect that change.

Change-Id: Iab907f680d08a3f3ed1d13b6867df01853105fc4
Partially-Implements: blueprint install-from-ubuntu
2015-08-27 11:05:39 +00:00

22 lines
718 B
Django/Jinja

FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
ADD ceilometer.tar /
RUN ln -s /ceilometer-* ceilometer \
&& useradd --user-group ceilometer \
&& pip --no-cache-dir install /ceilometer \
&& mkdir -p /etc/ceilometer /var/log/ceilometer /home/ceilometer \
&& cp -r /ceilometer/etc/* /etc/ceilometer/ \
&& chown -R ceilometer: /etc/ceilometer /var/log/ceilometer /home/ceilometer
{% endif %}