diff --git a/build/.bazelbuilderversion b/build/.bazelbuilderversion index b84f6513bcc5..2a904ff51306 100644 --- a/build/.bazelbuilderversion +++ b/build/.bazelbuilderversion @@ -1 +1 @@ -cockroachdb/bazel:20230303-060247 \ No newline at end of file +cockroachdb/bazel:20230815-141035 diff --git a/build/.bazelbuilderversion-fips b/build/.bazelbuilderversion-fips index 8c3ce20eb38d..f1c08f4040e0 100644 --- a/build/.bazelbuilderversion-fips +++ b/build/.bazelbuilderversion-fips @@ -1 +1 @@ -cockroachdb/bazel-fips:20230303-060247 \ No newline at end of file +cockroachdb/bazel-fips:20230815-141035 diff --git a/build/bazelbuilder/Dockerfile b/build/bazelbuilder/Dockerfile index 008c1ce52e8b..7f8d44d745f3 100644 --- a/build/bazelbuilder/Dockerfile +++ b/build/bazelbuilder/Dockerfile @@ -49,6 +49,7 @@ RUN case ${TARGETPLATFORM} in \ # git - Upgrade to a more modern version RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev -y && \ + apt-get clean && \ curl -fsSL https://github.com/git/git/archive/v2.29.2.zip -o "git-2.29.2.zip" && \ unzip "git-2.29.2.zip" && \ cd git-2.29.2 && \ @@ -61,9 +62,14 @@ RUN apt-get update && \ RUN curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \ && echo 'deb https://packages.cloud.google.com/apt cloud-sdk main' | tee /etc/apt/sources.list.d/gcloud.list \ + && curl -fsLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | apt-key add - \ + && echo "deb https://packages.microsoft.com/repos/azure-cli/ focal main" > /etc/apt/sources.list.d/azure-cli.list \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - google-cloud-sdk + azure-cli \ + google-cloud-sdk \ + google-cloud-cli-gke-gcloud-auth-plugin \ + && apt-get clean # chrome is needed for UI tests. Unfortunately it is only distributed for x86_64 # and not for ARM. Chrome shouldn't need to be installed when we migrate away @@ -87,10 +93,10 @@ RUN apt-get purge -y \ # NB: we don't use apt-get because we need an up to date version of awscli # If you update the below, you should probably also update build/builder/Dockerfile. RUN case ${TARGETPLATFORM} in \ - "linux/amd64") ARCH=x86_64; SHASUM=7ee475f22c1b35cc9e53affbf96a9ffce91706e154a9441d0d39cbf8366b718e ;; \ - "linux/arm64") ARCH=aarch64; SHASUM=624ebb04705d4909eb0d56d467fe6b8b5c53a8c59375ed520e70236120125077 ;; \ + "linux/amd64") ARCH=x86_64; SHASUM=e679933eec90b0e5a75d485be6c2fae0f89a3f9ccdcb1748be69f8f456e9a85f ;; \ + "linux/arm64") ARCH=aarch64; SHASUM=7d6460f795712ebdac7e3c60d4800dde682d136d909810402aac164f2789b860 ;; \ esac && \ - curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-$ARCH-2.0.30.zip" -o "awscliv2.zip" && \ + curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-$ARCH-2.13.9.zip" -o "awscliv2.zip" && \ echo "$SHASUM awscliv2.zip" | sha256sum -c - && \ unzip awscliv2.zip && \ ./aws/install && \ diff --git a/build/builder.sh b/build/builder.sh index 8b68301eb2de..f2bc990b314a 100755 --- a/build/builder.sh +++ b/build/builder.sh @@ -3,7 +3,7 @@ set -euo pipefail image=cockroachdb/builder -version=20230614-164006 +version=20230815-142459 function init() { docker build --tag="${image}" "$(dirname "${0}")/builder" diff --git a/build/builder/Dockerfile b/build/builder/Dockerfile index b25790dee1e9..5192006bab83 100644 --- a/build/builder/Dockerfile +++ b/build/builder/Dockerfile @@ -152,10 +152,14 @@ RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key ad && curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google.list \ && curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \ + && curl -fsLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | apt-key add - \ + && echo "deb https://packages.microsoft.com/repos/azure-cli/ focal main" > /etc/apt/sources.list.d/azure-cli.list \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + azure-cli \ ccache \ google-cloud-sdk \ + google-cloud-cli-gke-gcloud-auth-plugin \ lsof \ netcat \ netbase \ @@ -164,19 +168,21 @@ RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key ad openssh-client \ yarn \ google-chrome-stable \ - unzip + unzip \ +&& apt-get clean # awscli - roachtests # NB: we don't use apt-get because we need an up to date version of awscli # If you update the below, you should probably also update build/bazelbuilder/Dockerfile. -RUN curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip" && \ - echo "7ee475f22c1b35cc9e53affbf96a9ffce91706e154a9441d0d39cbf8366b718e awscliv2.zip" | sha256sum -c - && \ +RUN curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.13.9.zip" -o "awscliv2.zip" && \ + echo "e679933eec90b0e5a75d485be6c2fae0f89a3f9ccdcb1748be69f8f456e9a85f awscliv2.zip" | sha256sum -c - && \ unzip awscliv2.zip && \ ./aws/install && \ rm -rf aws awscliv2.zip # git - Upgrade to a more modern version RUN DEBIAN_FRONTEND=noninteractive apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev -y && \ + apt-get clean && \ curl -fsSL https://github.com/git/git/archive/v2.29.2.zip -o "git-2.29.2.zip" && \ unzip "git-2.29.2.zip" && \ cd git-2.29.2 && \