8758435d40
Change-Id: I15e6a06645361aec979d7dad4794b45236c957e3 Partially-Implements: blueprint dockerfile-template
25 lines
664 B
Django/Jinja
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 %}
|