Sam Yaple fd9d11aeb4 Fix broken zaqar template
Change-Id: I714b33b8a818b7d3320cfaa8fb10fc758f545513
Closes-Bug: #1487462
2015-08-21 13:13:48 +00:00

35 lines
847 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 ['fedora', 'centos', 'oraclelinux'] %}
RUN yum -y install openstack-zaqar && yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{% elif install_type == 'source' %}
ADD ./zaqar.tar /
RUN ln -s /zaqar-* /zaqar
RUN cd /zaqar \
&& useradd --user-group zaqar \
&& pip install -r requirements.txt \
&& pip install /zaqar \
&& mkdir /etc/zaqar /var/log/zaqar \
&& cp -r /zaqar/etc/* /etc/zaqar/ \
&& rm -rf /root/.cache
{% endif %}
COPY ./start.sh /start.sh
COPY config-external.sh /opt/kolla/
CMD ["/start.sh"]