constellation/bazel/container
Malte Poll ab257944f9
bazel: provide semi-hermetic python toolchain (#1753)
The actual python version used in bazel is hermetic after this PR.
However, we still require a host python toolchain for bootstrapping (this will be fixed soon upstream) and host wide glibc (+ libcrypt.so.1).
2023-05-22 09:10:41 +02:00
..
container.sh deps: update dependency bazel to v6.1.2 (#1749) 2023-05-05 16:42:33 +02:00
Containerfile bazel: provide semi-hermetic python toolchain (#1753) 2023-05-22 09:10:41 +02:00
Makefile deps: update dependency bazel to v6.1.2 (#1749) 2023-05-05 16:42:33 +02:00
README.md bazel: add container builder script 2023-04-17 12:06:21 +02:00

Bazel build container

This container enables running Bazel inside a container, with the host cache mounted.

To use the container, run

source container.sh
startBazelServer

You can then execute Bazel commands like you normally would do, as the sourced bazel function shadows binaries you might have in your path:

bazel query //...

To terminate the container, which is running as daemon in the background, execute

stopBazelServer