1# Copyright 2015 gRPC authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15FROM centos:6 16 17RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm 18 19# Vanilla CentOS6 only has python 2.6 and we don't support that. 20RUN yum -y install yum -y install https://centos6.iuscommunity.org/ius-release.rpm 21RUN yum install -y python27 22 23# Override python2.6 24RUN ln -s /usr/bin/python2.7 /usr/local/bin/python 25RUN ln -s /usr/bin/python2.7 /usr/local/bin/python2 26 27# Install pip 28RUN curl https://bootstrap.pypa.io/get-pip.py | python - 29 30# "which" command required by python's run_distrib_test.sh 31RUN yum install -y which 32 33RUN pip install virtualenv 34