kolla/docker_templates/gnocchi/gnocchi-base/Dockerfile.j2
Swapnil Kulkarni 8758435d40 Add Dockerfile template for Gnocchi
Change-Id: I15e6a06645361aec979d7dad4794b45236c957e3
Partially-Implements: blueprint dockerfile-template
2015-08-19 15:02:07 +00:00

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