Pin Bazel version to 0.4.4 for gRPC (#472)

This commit is contained in:
matt-kwong 2017-03-20 14:03:21 -07:00 committed by Abhishek Arya
parent ec86fc2fa3
commit c287418b4f
1 changed files with 7 additions and 1 deletions

View File

@ -31,8 +31,14 @@ RUN apt-get -y install \
# Install Bazel
RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
RUN apt-get update && apt-get install -y bazel
# Downgrade Bazel to 0.4.4
# Installing Bazel via apt-get first is required before installing 0.4.4 to
# allow gRPC to build without errors
RUN curl -fSsL -O https://github.com/bazelbuild/bazel/releases/download/0.4.4/bazel-0.4.4-installer-linux-x86_64.sh
RUN chmod +x ./bazel-0.4.4-installer-linux-x86_64.sh
RUN ./bazel-0.4.4-installer-linux-x86_64.sh
RUN git clone --recursive https://github.com/grpc/grpc grpc
WORKDIR /src/grpc/