kolla-ansible/docker_templates/ceilometer/ceilometer-base/Dockerfile.j2
Swapnil Kulkarni c6d36c68e1 Add Dockerfile template for Ceilometer
Change-Id: Id17f467235d70127ce92bab52a08b97a062ea207
Partially-Implements: blueprint dockerfile-template
2015-08-13 02:29:08 +00:00

25 lines
693 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
RUN cd /ceilometer \
&& useradd --user-group ceilometer \
&& pip install -r requirements.txt \
&& pip install /ceilometer \
&& mkdir /etc/ceilometer /var/log/ceilometer \
&& cp -r /ceilometer/etc/* /etc/ceilometer/ \
&& rm -rf /root/.cache
{% endif %}