commit | 150f24a5421dc1449d79a801524a7c98754f7bca | [log] [tgz] |
---|---|---|
author | Lorenz Brun <lorenz@monogon.tech> | Thu Jul 13 20:11:06 2023 +0200 |
committer | Lorenz Brun <lorenz@monogon.tech> | Wed Jul 19 12:17:34 2023 +0000 |
tree | c4f69b7e6260a241f3d946b36eda309e2539ccba | |
parent | 901c7326fe067707812757e4e9409f756edf0e37 [diff] |
metropolis/test: use localregistry This removes everything but the preseed test image from the preseed image pool, instead opting to serve all test image via localregistry. The registry API is served from a dedicated IP inside the virtual network and forwarded to an ephemeral listener on the host. The relevant infrastructure is added to the launch package. As it is required to add configuration to containerd for this registry anyways as it does not and should not have TLS we take that opportunity to give it a descriptive name (test.monogon.internal). Visibilities of images are also adjusted as they are now referenced much closer to their point of use. Against main this saves 51MiB in bundle size (289MiB -> 238MiB). Change-Id: I31f732eb8c4ccec486204f35e3635b588fd9c85b Reviewed-on: https://review.monogon.dev/c/monogon/+/1927 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 //...