fbb1842fc8
Make openstack-base optimized for from source builds for RPM based distributions. backport: liberty Change-Id: I5f1056ebc09fd55cd5d46da7a09331e38940d888 Implements: blueprint openstack-common-container
108 lines
2.9 KiB
Django/Jinja
108 lines
2.9 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
|
|
RUN yum -y install \
|
|
git \
|
|
iproute \
|
|
mariadb-libs \
|
|
MySQL-python \
|
|
openssl \
|
|
patch \
|
|
&& yum clean all
|
|
{% endif %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
python-barbicanclient \
|
|
python-ceilometerclient \
|
|
python-congressclient \
|
|
python-designateclient \
|
|
python-heatclient \
|
|
python-ironicclient \
|
|
python-magnumclient \
|
|
python-manilaclient \
|
|
python-mistralclient \
|
|
python-muranoclient \
|
|
python-pip \
|
|
python-saharaclient \
|
|
python-swiftclient \
|
|
python-troveclient \
|
|
python-tuskarclient \
|
|
python-zaqarclient \
|
|
python-openstackclient \
|
|
MySQL-python \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
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 \
|
|
curl \
|
|
ca-certificates \
|
|
build-essential \
|
|
python-dev \
|
|
libssl-dev \
|
|
libmariadbclient-dev \
|
|
libxslt1-dev \
|
|
libffi-dev \
|
|
libyaml-dev \
|
|
patch \
|
|
pkg-config \
|
|
git \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
|
|
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
|
&& python get-pip.py \
|
|
&& rm get-pip.py \
|
|
&& pip --no-cache-dir install -U \
|
|
python-barbicanclient \
|
|
python-ceilometerclient \
|
|
python-congressclient \
|
|
python-designateclient \
|
|
python-heatclient \
|
|
python-ironicclient \
|
|
python-magnumclient \
|
|
python-manilaclient \
|
|
python-mistralclient \
|
|
python-muranoclient \
|
|
python-saharaclient \
|
|
python-swiftclient \
|
|
python-troveclient \
|
|
python-tuskarclient \
|
|
python-zaqarclient \
|
|
python-openstackclient \
|
|
MySQL-python
|
|
|
|
# TODO(sdake): Remove a backport of a patch which is not yet in the packaging
|
|
# to make oslo.log work properly once the patch is in oslo.log
|
|
# NB: Please remove patch from the list of packages for both
|
|
# RPM and APT.
|
|
COPY 0001-Fix-unintended-assignment-of-syslog.patch /
|
|
RUN patch -p1 -d /usr/lib/python2.7/site-packages < /0001-Fix-unintended-assignment-of-syslog.patch
|
|
|
|
{% endif %}
|