diff options
author | Matt Kwong <mattkwong@google.com> | 2016-12-21 16:18:57 -0800 |
---|---|---|
committer | Matt Kwong <mattkwong@google.com> | 2016-12-22 12:07:27 -0800 |
commit | 346f9e46eb0ba9b13ec8ca2d018a2eab2cfc58b0 (patch) | |
tree | f3460c4405cd24e75bead171e6a002afe5cb8063 /tools/dockerfile/grpc_artifact_python_manylinux_x64 | |
parent | c3c1240ad5e2e7b3b25c28639ad8cf5152b19f33 (diff) |
Fix Python artifact build
Diffstat (limited to 'tools/dockerfile/grpc_artifact_python_manylinux_x64')
-rw-r--r-- | tools/dockerfile/grpc_artifact_python_manylinux_x64/Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dockerfile/grpc_artifact_python_manylinux_x64/Dockerfile b/tools/dockerfile/grpc_artifact_python_manylinux_x64/Dockerfile index 1d4e8e1a4a..69e624aa41 100644 --- a/tools/dockerfile/grpc_artifact_python_manylinux_x64/Dockerfile +++ b/tools/dockerfile/grpc_artifact_python_manylinux_x64/Dockerfile @@ -34,6 +34,19 @@ FROM quay.io/pypa/manylinux1_x86_64 # Update the package manager RUN yum update -y +############################################################# +# Update Git to allow cloning submodules with --reference arg +RUN yum remove -y git +RUN yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc +RUN cd /usr/src && \ + wget https://kernel.org/pub/software/scm/git/git-2.0.5.tar.gz && \ + tar xzf git-2.0.5.tar.gz +RUN cd /usr/src/git-2.0.5 && \ + make prefix=/usr/local/git all && \ + make prefix=/usr/local/git install +ENV PATH /usr/local/git/bin:$PATH +RUN source /etc/bashrc + ################################### # Install Python build requirements RUN /opt/python/cp27-cp27m/bin/pip install cython |