commit | 394b67e4208e1b2f06e61ab7e69ae58f444a56d8 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Wed Jul 19 17:34:34 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Thu Jul 20 10:54:36 2023 +0000 |
tree | 76280f2c02e4afe2f9ace484f7fd61040326df47 | |
parent | 4f28b9ed6387dc22225f5e60a78f91ab8e3d65bd [diff] |
m/cli/metroctl: implement buildkind=lite Users can now build metroctl with: bazel build //metropolis/cli/metroctl --//metropolis/cli/metrocli:buildkind=lite To request a metroctl built without a direct dependency on the rest of Metropolis. Such a metroctl tool will not be able to run `genusb` without manually specifying a metropolis bundle and metropolis installer kernel. Change-Id: Ic8c135392a7d0ec3120e5dbed8fd6636de578633 Reviewed-on: https://review.monogon.dev/c/monogon/+/1947 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@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 //...