Enable source for openstack-base for RPM distros

Make openstack-base optimized for from source builds for RPM based
distributions.

backport: liberty

Change-Id: I5f1056ebc09fd55cd5d46da7a09331e38940d888
Implements: blueprint openstack-common-container
This commit is contained in:
Steven Dake 2015-10-06 11:42:52 -07:00
parent d352505ccb
commit fbb1842fc8
2 changed files with 21 additions and 20 deletions

View File

@ -140,31 +140,15 @@ RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \
{% endif %} {% endif %}
# Update packages # Update packages
RUN yum update -y \ RUN yum -y install \
&& yum install -y \ curl \
epel-release \
gcc \
gcc-c++ \
git \
libffi-devel \
libxml2-devel \
libxslt-devel \
mariadb-devel \
mysql-devel \
openldap-devel \
openssl \
openssl-devel \
postgresql \
postgresql-devel \
python-devel \
sqlite-devel \
sudo \ sudo \
tar \ tar \
which \ which \
&& yum clean all && yum clean all
# endif for install type is source for RPM based distros
{% endif %} {% endif %}
# endif for install type is binary/rhos/rdo for RPM based distros
# endif for base_distro centos,fedora,oraclelinux,rhel # endif for base_distro centos,fedora,oraclelinux,rhel
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}

View File

@ -38,8 +38,25 @@ RUN yum -y install \
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
{% if base_distro in ['ubuntu', 'debian'] %} RUN yum -y install \
gcc \
gcc-c++ \
libffi-devel \
libxml2-devel \
libxslt-devel \
mariadb-devel \
mysql-devel \
openldap-devel \
openssl-devel \
postgresql \
postgresql-devel \
python-devel \
sqlite-devel \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
curl \ curl \