Skip to content

Commit

Permalink
Document the option to use docker container
Browse files Browse the repository at this point in the history
Fixes bazelbuild/continuous-integration#1060 (comment)

Closes #17113.

PiperOrigin-RevId: 511666892
Change-Id: Ifbfb8c9b2ba82724719101a0118f1235948f6bab
  • Loading branch information
meteorcloudy authored and copybara-github committed Feb 23, 2023
1 parent 17266bf commit 318f863
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/en/install/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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:<bazel version>
```

The Docker container is built by [these steps](https://github.com/bazelbuild/continuous-integration/tree/master/bazel/oci).

0 comments on commit 318f863

Please sign in to comment.