Merge pull request #20727 from lidizheng/add-3.6-to-bazel

Add 3.6 to Bazel Docker image
pull/20766/head
Lidi Zheng 5 years ago committed by GitHub
commit 9d7e7a68f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      templates/tools/dockerfile/test/bazel/Dockerfile.template
  2. 22
      tools/dockerfile/test/bazel/Dockerfile

@ -29,6 +29,7 @@
autoconf ${'\\'}
build-essential ${'\\'}
curl ${'\\'}
wget ${'\\'}
libtool ${'\\'}
make ${'\\'}
openjdk-8-jdk ${'\\'}
@ -36,6 +37,8 @@
<%include file="../../python_deps.include"/>
<%include file="../../compile_python_36.include"/>
<%include file="../../bazel.include"/>
RUN mkdir -p /var/local/jenkins

@ -27,6 +27,7 @@ RUN apt-get update && apt-get -y install \
autoconf \
build-essential \
curl \
wget \
libtool \
make \
openjdk-8-jdk \
@ -48,6 +49,27 @@ RUN pip install virtualenv
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0
#=================
# Compile CPython 3.6.9 from source
RUN apt-get update && apt-get install -y zlib1g-dev libssl-dev
RUN apt-get update && apt-get install -y jq build-essential libffi-dev
RUN cd /tmp && \
wget -q https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz && \
tar xzvf Python-3.6.9.tgz && \
cd Python-3.6.9 && \
./configure && \
make install
RUN cd /tmp && \
echo "ff7cdaef4846c89c1ec0d7b709bbd54d Python-3.6.9.tgz" > checksum.md5 && \
md5sum -c checksum.md5
RUN python3.6 -m ensurepip && \
python3.6 -m pip install coverage
#========================
# Bazel installation

Loading…
Cancel
Save