From 7cae5775bf483ab11d267ba56c278c67ad881b00 Mon Sep 17 00:00:00 2001 From: Prince Datta Date: Tue, 10 Dec 2024 23:02:12 +0530 Subject: [PATCH] Pin bazel version to 7.4.1 --- cloudbuild/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cloudbuild/Dockerfile b/cloudbuild/Dockerfile index 94e6e6cb3..bab9578ed 100644 --- a/cloudbuild/Dockerfile +++ b/cloudbuild/Dockerfile @@ -10,6 +10,7 @@ COPY --chown=ia-tests:ia-tests . /init-actions # Install Bazel: # https://docs.bazel.build/versions/master/install-ubuntu.html ENV bazel_kr_path=/usr/share/keyrings/bazel-keyring.gpg +ENV DEBIAN_FRONTEND=noninteractive RUN apt-get install -y -qq curl >/dev/null 2>&1 && \ apt-get clean RUN /usr/bin/curl https://bazel.build/bazel-release.pub.gpg | \ @@ -18,7 +19,12 @@ RUN echo "deb [arch=amd64 signed-by=${bazel_kr_path}] http://storage.googleapis. dd of=/etc/apt/sources.list.d/bazel.list status=none && \ apt-get update -qq RUN apt-get autoremove -y -qq && \ - apt-get install -y -qq openjdk-8-jdk python3-setuptools bazel >/dev/null 2>&1 && \ + apt-get install -y -qq openjdk-8-jdk python3-setuptools unzip g++ zlib1g-dev >/dev/null 2>&1 && \ apt-get clean +RUN curl -Lo /tmp/bazel_7.4.1-linux-x86_64.deb https://github.com/bazelbuild/bazel/releases/download/7.4.1/bazel_7.4.1-linux-x86_64.deb +RUN dpkg -i /tmp/bazel_7.4.1-linux-x86_64.deb \ + && apt-get install -f -y \ + && rm /tmp/bazel_7.4.1-linux-x86_64.deb + USER ia-tests