Steven Dake 5c5a3faaa0 automaton renamed to python-automaton
Cinder is broken by this RDO package rename.  Maintaining docker templates
for basic things like this until the /docker directory is removed.

Change-Id: Ieae2ab3296346767c305d21e8bb8de964160f84a
Closes-Bug: #1487762
2015-08-22 12:57:47 -07:00

32 lines
863 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-cinder \
python-automaton \
&& 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 ./cinder.tar /
RUN ln -s /cinder-* /cinder
RUN cd /cinder \
&& useradd --user-group cinder \
&& pip install -r requirements.txt \
&& pip install /cinder \
&& mkdir /etc/cinder /var/log/cinder \
&& cp -r /cinder/etc/cinder/* /etc/cinder/ \
&& chown -R cinder: /etc/cinder /var/log/cinder \
&& rm -rf /root/.cache
{% endif %}