Merge "Unify Centos and Ubuntu Source Install - Swift"

This commit is contained in:
Jenkins 2015-08-27 16:30:19 +00:00 committed by Gerrit Code Review
commit fcbee7b27a

View File

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