commit | 29ac140c4cbdb8dd8d71863de8c9b4473a1c0215 | [log] [tgz] |
---|---|---|
author | Tim Windelschmidt <tim@monogon.tech> | Mon Aug 21 15:18:19 2023 +0200 |
committer | Tim Windelschmidt <tim@monogon.tech> | Thu Aug 24 13:03:08 2023 +0000 |
tree | e82efa73a72ddeec624acfefe693ffa66bb2db45 | |
parent | 3781ddbfd7534f88317a44e6fee02670fe36a01e [diff] |
tools/run_bazel: allow running bazel inside nix-shell without entering nix-shell does not support arguments for an application running inside a FHS environment. This adds a workaround by keeping the command inside an environment variable and executing it if set. If it doesnt exist, we fall back to our bash shell. Change-Id: I7fd53f9c14019179490af4b9af3b0b16b3d70297 Reviewed-on: https://review.monogon.dev/c/monogon/+/2066 Tested-by: Jenkins CI Reviewed-by: Leopold Schabel <leo@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...