Merge "Fix swift build issue"

This commit is contained in:
Jenkins 2016-01-28 10:14:21 +00:00 committed by Gerrit Code Review
commit af7092151a
1 changed files with 13 additions and 0 deletions

View File

@ -9,6 +9,19 @@ RUN yum -y install openstack-swift \
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
liberasurecode-devel \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get install -y --no-install-recommends \
liberasurecode-dev \
&& apt-get clean
{% endif %}
ADD swift-base-archive /swift-base-source
RUN ln -s swift-base-source/* swift \