From 318f86377002e43510906ef8dfd86cdab625e1ec Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 22 Feb 2023 20:11:55 -0800 Subject: [PATCH] Document the option to use docker container Fixes https://github.com/bazelbuild/continuous-integration/issues/1060#issuecomment-1369119958 Closes #17113. PiperOrigin-RevId: 511666892 Change-Id: Ifbfb8c9b2ba82724719101a0118f1235948f6bab --- site/en/install/ubuntu.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/site/en/install/ubuntu.md b/site/en/install/ubuntu.md index d89678b4d32b71..461bb019ec8f7d 100644 --- a/site/en/install/ubuntu.md +++ b/site/en/install/ubuntu.md @@ -22,6 +22,7 @@ Install Bazel on Ubuntu using one of the following methods: * *Recommended*: [Use Bazelisk](/install/bazelisk) * [Use our custom APT repository](#install-on-ubuntu) * [Use the binary installer](#binary-installer) +* [Use the Bazel Docker container](#docker-container) * [Compile Bazel from source](/install/compile-source) **Note:** For Arm-based systems, the APT repository does not contain an `arm64` @@ -155,3 +156,15 @@ export PATH="$PATH:$HOME/bin" You can also add this command to your `~/.bashrc` or `~/.zshrc` file to make it permanent. + +## Using the Bazel Docker container {:#docker-container} + +We publish Docker container with Bazel installed for each Bazel version at `gcr.io/bazel-public/bazel`. +You can use the Docker container as follows: + +``` +$ docker pull gcr.io/bazel-public/bazel: +``` + +The Docker container is built by [these steps](https://github.com/bazelbuild/continuous-integration/tree/master/bazel/oci). +