From c287418b4f23e39f28cd9f98c7e755d05e6770b7 Mon Sep 17 00:00:00 2001 From: matt-kwong Date: Mon, 20 Mar 2017 14:03:21 -0700 Subject: [PATCH] Pin Bazel version to 0.4.4 for gRPC (#472) --- projects/grpc/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/grpc/Dockerfile b/projects/grpc/Dockerfile index 47a69f09d..0a4a46889 100644 --- a/projects/grpc/Dockerfile +++ b/projects/grpc/Dockerfile @@ -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/