Status | experimental |
OCI Reference | cgr.dev/chainguard/bazel |
Variants/Tags |
Contact Chainguard for enterprise support, SLAs, and access to older tags.
Bazel - A fast, scalable, multi-language and extensible build system.
The image is available on cgr.dev
:
docker pull cgr.dev/chainguard/bazel
We can use the Bazel examples to try this image.
first clone https://github.com/bazelbuild/examples
git clone git@github.com:bazelbuild/examples.git
change into the Java tutorial directory
cd examples/java-tutorial
now run the chainguard image, mounting the example and overwrite the entrypoint to bash
docker run --rm -ti --entrypoint bash -v ${PWD}:/home/bazel cgr.dev/chainguard/bazel
once in the container you can perform a build
bazel build //:ProjectRunner
and now run the example
bazel-bin/ProjectRunner
and see the message from the example application
Hi