From: David Ostrovsky Date: Sun, 28 Apr 2024 12:30:56 +0000 (+0200) Subject: Bazel: Update RBE docker image to Ubuntu 22.04 and JDK 17 X-Git-Tag: v6.10.0.202405212237-m3~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6521c647b7073a9423749b1896302e3e0975d649;p=jgit.git Bazel: Update RBE docker image to Ubuntu 22.04 and JDK 17 In this change we update the JDK used in RBE to JDK 17. Use Ubuntu 22.04 docker image with JDK 17 from Bazel project as the new base image. So that we don't need to maintain our own docker image any more. Also align the naming convention for the docker images with the Bazel project: -, and remove "rbe"-prefix from the docker image name, because the image doesn't have any RBE specifics and could be used for Gerrit build and tests outside of the RBE pipeline. Change-Id: I617354c79301ec6dd52161dd3727f646c2a8ac56 --- diff --git a/WORKSPACE b/WORKSPACE index 21ebc72093..b0d0ea01f0 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -11,12 +11,12 @@ load( ) http_archive( - name = "rbe_jdk11", - sha256 = "dbcfd6f26589ef506b91fe03a12dc559ca9c84699e4cf6381150522287f0e6f6", - strip_prefix = "rbe_autoconfig-3.1.0", + name = "ubuntu2204_jdk17", + sha256 = "8ea82b81c9707e535ff93ef5349d11e55b2a23c62bcc3b0faaec052144aed87d", + strip_prefix = "rbe_autoconfig-5.1.0", urls = [ - "https://gerrit-bazel.storage.googleapis.com/rbe_autoconfig/v3.1.0.tar.gz", - "https://github.com/davido/rbe_autoconfig/archive/v3.1.0.tar.gz", + "https://gerrit-bazel.storage.googleapis.com/rbe_autoconfig/v5.1.0.tar.gz", + "https://github.com/davido/rbe_autoconfig/releases/download/v5.1.0/v5.1.0.tar.gz", ], ) diff --git a/tools/remote-bazelrc b/tools/remote-bazelrc index 0c558f8136..f8aabd28ae 100644 --- a/tools/remote-bazelrc +++ b/tools/remote-bazelrc @@ -30,12 +30,11 @@ build:remote --disk_cache= # Set several flags related to specifying the platform, toolchain and java # properties. -build:remote --crosstool_top=@rbe_jdk11//cc:toolchain -build:remote --extra_toolchains=@rbe_jdk11//config:cc-toolchain -build:remote --extra_execution_platforms=@rbe_jdk11//config:platform -build:remote --host_platform=@rbe_jdk11//config:platform -build:remote --platforms=@rbe_jdk11//config:platform -build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 +build:remote --crosstool_top=@ubuntu2204_jdk17//cc:toolchain +build:remote --extra_toolchains=@ubuntu2204_jdk17//config:cc-toolchain +build:remote --extra_execution_platforms=@ubuntu2204_jdk17//config:platform +build:remote --host_platform=@ubuntu2204_jdk17//config:platform +build:remote --platforms=@ubuntu2204_jdk17//config:platform # Set various strategies so that all actions execute remotely. Mixing remote # and local execution will lead to errors unless the toolchain and remote