Merge "Unify Centos and Ubuntu Source Install - Glance"
This commit is contained in:
commit
14d706da4e
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user