cbd42ca6e9
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir
26 lines
759 B
Django/Jinja
26 lines
759 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends libpq-dev \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
|
|
ADD gnocchi.tar /
|
|
RUN ln -s /gnocchi-* gnocchi \
|
|
&& useradd --user-group gnocchi \
|
|
&& pip --no-cache-dir install /gnocchi \
|
|
&& mkdir -p /etc/gnocchi /var/log/gnocchi /home/gnocchi \
|
|
&& cp -r /gnocchi/etc/* /etc/gnocchi/ \
|
|
&& chown -R gnocchi: /etc/gnocchi /var/log/gnocchi /home/gnocchi
|
|
|
|
{% endif %}
|