Image Overview: bazel

Overview: bazel Chainguard Image

Bazel - A fast, scalable, multi-language and extensible build system.

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/bazel:latest

Using 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

Last updated: 2024-04-11 12:38