Merge pull request #5208 from jtattermusch/fix_python_centos6_release

Backport: Fix python centos6 distribtest in release-0_13
pull/5214/head
Michael Lumish 9 years ago
commit a63300581d
  1. 16
      tools/dockerfile/distribtest/python_centos6_x64/Dockerfile

@ -29,10 +29,18 @@
FROM centos:6
RUN yum install -y python
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
RUN yum install -y python-pip
# Vanilla CentOS6 only has python 2.6 and we don't support that.
RUN yum -y install yum -y install https://centos6.iuscommunity.org/ius-release.rpm
RUN yum install -y python27
RUN pip install --upgrade pip
# Override python2.6
RUN ln -s /usr/bin/python2.7 /usr/local/bin/python
RUN ln -s /usr/bin/python2.7 /usr/local/bin/python2
# Install pip
RUN curl https://bootstrap.pypa.io/get-pip.py | python -
# "which" command required by python's run_distrib_test.sh
RUN yum install -y which

Loading…
Cancel
Save