Merge "Unify Centos and Ubuntu Source Install - Glance"

This commit is contained in:
Jenkins 2015-08-27 13:20:34 +00:00 committed by Gerrit Code Review
commit 14d706da4e

View File

@ -17,16 +17,12 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD ./glance.tar /
RUN ln -s /glance-* /glance
RUN cd /glance \
ADD glance.tar /
RUN ln -s /glance-* glance \
&& useradd --user-group glance \
&& pip install -r requirements.txt \
&& pip install --install-option="--install-scripts=/usr/bin" /glance \
&& pip --no-cache-dir install /glance \
&& mkdir -p /etc/glance /var/log/glance /home/glance \
&& cp -r /glance/etc/* /etc/glance/ \
&& chown -R glance: /etc/glance /var/log/glance /home/glance \
&& rm -rf /root/.cache
&& chown -R glance: /etc/glance /var/log/glance /home/glance
{% endif %}