30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
ARG RELEASE=7.5.1804
|
|
FROM centos:${RELEASE}
|
|
|
|
ARG BUILD_STREAM=stable
|
|
|
|
# Install the necessary packages for building the python modules.
|
|
# Some of these are dependencies of the specific modules, and could
|
|
# instead be added to the wheels.cfg file in the future.
|
|
RUN set -ex ;\
|
|
sed -i '/\[main\]/ atimeout=120' /etc/yum.conf ;\
|
|
yum install -y epel-release centos-release-openstack-queens ;\
|
|
yum install -y git gcc zip bzip2 unzip \
|
|
python3 python3-pip python3-wheel python3-devel \
|
|
wget openldap-devel mariadb mariadb-devel \
|
|
libvirt libvirt-devel liberasurecode-devel nss-devel \
|
|
systemd-devel postgresql-devel ;\
|
|
# while setuptools is larger than 45.3, it no longer support "Features" in setup.py
|
|
python3 -m pip install --user setuptools==45.3 ;\
|
|
python3 -m pip install --user --upgrade wheel
|
|
COPY docker-build-wheel.sh /
|
|
COPY ${BUILD_STREAM}-wheels.cfg /wheels.cfg
|
|
|
|
# Python2 packages
|
|
RUN set -ex; \
|
|
yum -y install python python-devel ;\
|
|
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py ;\
|
|
python get-pip.py
|
|
COPY ${BUILD_STREAM}-wheels-py2.cfg /wheels-py2.cfg
|
|
|