commit
0f7a9f77fc
@ -3,58 +3,59 @@ FROM centos:7
|
|||||||
ENV OPENSTACK_VERSION=newton
|
ENV OPENSTACK_VERSION=newton
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
# NOTE(Pete Birley): CentOS-OpenStack repo is only used for liberasurecode-devel
|
# NOTE(Pete Birley): CentOS-OpenStack repo is only used for liberasurecode-devel
|
||||||
&& curl -sSL https://raw.githubusercontent.com/rdo-infra/centos-release-openstack/${OPENSTACK_VERSION}-rdo/CentOS-OpenStack.repo > /etc/yum.repos.d/CentOS-OpenStack.repo \
|
&& curl -sSL https://raw.githubusercontent.com/rdo-infra/centos-release-openstack/${OPENSTACK_VERSION}-rdo/CentOS-OpenStack.repo > /etc/yum.repos.d/CentOS-OpenStack.repo \
|
||||||
&& sed -i "s/OPENSTACK_VERSION/${OPENSTACK_VERSION}/g" /etc/yum.repos.d/CentOS-OpenStack.repo \
|
&& sed -i "s/OPENSTACK_VERSION/${OPENSTACK_VERSION}/g" /etc/yum.repos.d/CentOS-OpenStack.repo \
|
||||||
&& sed -i "/\[centos-openstack-${OPENSTACK_VERSION}\]/s/.*/&\nincludepkgs=liberasurecode*/" /etc/yum.repos.d/CentOS-OpenStack.repo \
|
&& sed -i "/\[centos-openstack-${OPENSTACK_VERSION}\]/s/.*/&\nincludepkgs=liberasurecode*/" /etc/yum.repos.d/CentOS-OpenStack.repo \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/rdo-infra/centos-release-openstack/newton-rdo/RPM-GPG-KEY-CentOS-SIG-Cloud > /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud \
|
&& curl -sSL https://raw.githubusercontent.com/rdo-infra/centos-release-openstack/newton-rdo/RPM-GPG-KEY-CentOS-SIG-Cloud > /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud \
|
||||||
# NOTE(Pete Birley): libffi-devel does not like being uninstalled on CentOS so we install it seperatly, all of its dependencies are already installed in the docker base image.
|
# NOTE(Pete Birley): libffi-devel does not like being uninstalled on CentOS so we install it seperatly, all of its dependencies are already installed in the docker base image.
|
||||||
&& yum install --setopt=tsflags=nodocs -y \
|
&& yum install --setopt=tsflags=nodocs -y \
|
||||||
libffi-devel \
|
libffi-devel \
|
||||||
&& yum install --setopt=tsflags=nodocs -y \
|
&& yum install --setopt=tsflags=nodocs -y \
|
||||||
gcc \
|
gcc \
|
||||||
gcc-c++ \
|
gcc-c++ \
|
||||||
make \
|
make \
|
||||||
openssl-devel \
|
openssl-devel \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
liberasurecode-devel \
|
liberasurecode-devel \
|
||||||
openldap-devel \
|
openldap-devel \
|
||||||
mariadb-devel \
|
mariadb-devel \
|
||||||
nss-devel \
|
nss-devel \
|
||||||
postgresql-devel \
|
postgresql-devel \
|
||||||
cyrus-sasl-devel \
|
cyrus-sasl-devel \
|
||||||
openssl-devel \
|
openssl-devel \
|
||||||
libxml2-devel \
|
libxml2-devel \
|
||||||
libxslt-devel \
|
libxslt-devel \
|
||||||
libvirt-devel \
|
libvirt-devel \
|
||||||
libyaml-devel \
|
libyaml-devel \
|
||||||
zlib-devel \
|
zlib-devel \
|
||||||
pkgconfig \
|
pkgconfig \
|
||||||
python \
|
python \
|
||||||
python-devel \
|
python-devel \
|
||||||
libgcrypt \
|
libgcrypt \
|
||||||
nss-util \
|
nss-util \
|
||||||
&& curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
||||||
&& python get-pip.py \
|
&& python get-pip.py \
|
||||||
&& rm get-pip.py \
|
&& rm get-pip.py \
|
||||||
&& mkdir /root/packages \
|
&& mkdir /root/packages \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/global-requirements.txt > /root/packages/global-requirements.txt \
|
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/global-requirements.txt > /root/packages/global-requirements.txt \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt > /root/packages/upper-constraints.txt \
|
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt > /root/packages/upper-constraints.txt \
|
||||||
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
|
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
|
||||||
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
|
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
|
||||||
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
|
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
|
||||||
&& mkdir /tmp/python-nss \
|
&& mkdir /tmp/python-nss \
|
||||||
&& tar xvf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
|
&& tar xf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
|
||||||
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
|
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
|
||||||
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
|
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
|
||||||
# NOTE(SamYaple): end bug workaround
|
# NOTE(SamYaple): end bug workaround
|
||||||
# NOTE(Pete Birley): spec-cleaner 0.9.1 requires a newer version of re than comes with Python 2.7.5. https://bugs.launchpad.net/openstack-requirements/+bug/1655509
|
# NOTE(Pete Birley): spec-cleaner 0.9.1 requires a newer version of re than comes with Python 2.7.5. https://bugs.launchpad.net/openstack-requirements/+bug/1655509
|
||||||
&& sed -i "s/spec-cleaner===0.9.1/spec-cleaner===0.9.0/" /root/packages/upper-constraints.txt \
|
&& sed -i "s/spec-cleaner===0.9.1/spec-cleaner===0.9.0/" /root/packages/upper-constraints.txt \
|
||||||
# NOTE(Pete Birley): end bug workaround
|
# NOTE(Pete Birley): end bug workaround
|
||||||
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
|
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
|
||||||
&& yum history -y undo $(yum history list gcc | tail -2 | head -1 | awk '{ print $1}') \
|
uwsgi \
|
||||||
&& yum clean all \
|
&& yum history -y undo $(yum history list gcc | tail -2 | head -1 | awk '{ print $1}') \
|
||||||
&& rm -rf /tmp/* /root/.cache
|
&& yum clean all \
|
||||||
|
&& rm -rf /tmp/* /root/.cache
|
||||||
|
@ -1,63 +1,64 @@
|
|||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
# NOTE(SamYaple): backports is only used for liberasurecode-dev
|
# NOTE(SamYaple): backports is only used for liberasurecode-dev
|
||||||
&& echo "deb http://deb.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list \
|
&& echo "deb http://deb.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
liberasurecode-dev \
|
liberasurecode-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libldap2-dev \
|
libldap2-dev \
|
||||||
libmysqlclient-dev \
|
libmysqlclient-dev \
|
||||||
libnss3-dev \
|
libnss3-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
libvirt-dev \
|
libvirt-dev \
|
||||||
libyaml-dev \
|
libyaml-dev \
|
||||||
libz-dev \
|
libz-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python \
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
&& curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
||||||
&& python get-pip.py \
|
&& python get-pip.py \
|
||||||
&& rm get-pip.py \
|
&& rm get-pip.py \
|
||||||
&& mkdir /root/packages \
|
&& mkdir /root/packages \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/global-requirements.txt > /root/packages/global-requirements.txt \
|
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/global-requirements.txt > /root/packages/global-requirements.txt \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt > /root/packages/upper-constraints.txt \
|
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt > /root/packages/upper-constraints.txt \
|
||||||
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
|
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
|
||||||
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
|
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
|
||||||
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
|
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
|
||||||
&& mkdir /tmp/python-nss \
|
&& mkdir /tmp/python-nss \
|
||||||
&& tar xvf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
|
&& tar xf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
|
||||||
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
|
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
|
||||||
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
|
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
|
||||||
# NOTE(SamYaple): end bug workaround
|
# NOTE(SamYaple): end bug workaround
|
||||||
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
|
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
|
||||||
&& apt-get purge -y --auto-remove \
|
uwsgi \
|
||||||
build-essential \
|
&& apt-get purge -y --auto-remove \
|
||||||
ca-certificates \
|
build-essential \
|
||||||
curl \
|
ca-certificates \
|
||||||
git \
|
curl \
|
||||||
liberasurecode-dev \
|
git \
|
||||||
libffi-dev \
|
liberasurecode-dev \
|
||||||
libldap2-dev \
|
libffi-dev \
|
||||||
libmysqlclient-dev \
|
libldap2-dev \
|
||||||
libnss3-dev \
|
libmysqlclient-dev \
|
||||||
libpq-dev \
|
libnss3-dev \
|
||||||
libsasl2-dev \
|
libpq-dev \
|
||||||
libssl-dev \
|
libsasl2-dev \
|
||||||
libxml2-dev \
|
libssl-dev \
|
||||||
libxslt1-dev \
|
libxml2-dev \
|
||||||
libvirt-dev \
|
libxslt1-dev \
|
||||||
libyaml-dev \
|
libvirt-dev \
|
||||||
libz-dev \
|
libyaml-dev \
|
||||||
pkg-config \
|
libz-dev \
|
||||||
python-dev \
|
pkg-config \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /root/.cache
|
python-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /root/.cache
|
||||||
|
@ -1,61 +1,62 @@
|
|||||||
FROM ubuntu:xenial
|
FROM ubuntu:xenial
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
liberasurecode-dev \
|
liberasurecode-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libldap2-dev \
|
libldap2-dev \
|
||||||
libmysqlclient-dev \
|
libmysqlclient-dev \
|
||||||
libnss3-dev \
|
libnss3-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
libvirt-dev \
|
libvirt-dev \
|
||||||
libyaml-dev \
|
libyaml-dev \
|
||||||
libz-dev \
|
libz-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python \
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
&& curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
||||||
&& python get-pip.py \
|
&& python get-pip.py \
|
||||||
&& rm get-pip.py \
|
&& rm get-pip.py \
|
||||||
&& mkdir /root/packages \
|
&& mkdir /root/packages \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/global-requirements.txt > /root/packages/global-requirements.txt \
|
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/global-requirements.txt > /root/packages/global-requirements.txt \
|
||||||
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt > /root/packages/upper-constraints.txt \
|
&& curl -sSL https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt > /root/packages/upper-constraints.txt \
|
||||||
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
|
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
|
||||||
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
|
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
|
||||||
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
|
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
|
||||||
&& mkdir /tmp/python-nss \
|
&& mkdir /tmp/python-nss \
|
||||||
&& tar xvf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
|
&& tar xf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
|
||||||
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
|
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
|
||||||
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
|
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
|
||||||
# NOTE(SamYaple): end bug workaround
|
# NOTE(SamYaple): end bug workaround
|
||||||
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
|
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
|
||||||
&& apt-get purge -y --auto-remove \
|
uwsgi \
|
||||||
build-essential \
|
&& apt-get purge -y --auto-remove \
|
||||||
ca-certificates \
|
build-essential \
|
||||||
curl \
|
ca-certificates \
|
||||||
git \
|
curl \
|
||||||
liberasurecode-dev \
|
git \
|
||||||
libffi-dev \
|
liberasurecode-dev \
|
||||||
libldap2-dev \
|
libffi-dev \
|
||||||
libmysqlclient-dev \
|
libldap2-dev \
|
||||||
libnss3-dev \
|
libmysqlclient-dev \
|
||||||
libpq-dev \
|
libnss3-dev \
|
||||||
libsasl2-dev \
|
libpq-dev \
|
||||||
libssl-dev \
|
libsasl2-dev \
|
||||||
libxml2-dev \
|
libssl-dev \
|
||||||
libxslt1-dev \
|
libxml2-dev \
|
||||||
libvirt-dev \
|
libxslt1-dev \
|
||||||
libyaml-dev \
|
libvirt-dev \
|
||||||
libz-dev \
|
libyaml-dev \
|
||||||
pkg-config \
|
libz-dev \
|
||||||
python-dev \
|
pkg-config \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /root/.cache
|
python-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /root/.cache
|
||||||
|
Loading…
Reference in New Issue
Block a user