refactor(dev-orchestrator): centralize image build and add up --when-down SPOT

- Introduce cli.deploy.development build subcommand as single build SPOT
- Remove legacy compose.build_infinito implementation
- Make up use build-missing logic via build handler
- Add --when-down flag to up (skip startup if stack already running)
- Simplify restart/run to reuse up handler
- Ensure tests use up --when-down to avoid stack interference
- Make test targets depend on build-missing

https://chatgpt.com/share/696fd3c9-99f0-800f-a0ab-33a91058419a
This commit is contained in:
kevinveenbirkenbach committed 2026-01-20 20:13:02 +01:00
1 parent 1b07554914
commit 4e0d09e773
9 files changed
+148 -93

No files matched your search

+1 -5
View File
@@ -9,11 +9,7 @@ echo "============================================================"
: "${TEST_PATTERN:?TEST_PATTERN must be set}"
: "${TEST_TYPE:?TEST_TYPE must be set}"
# 1) Bring up the development compose stack (coredns + infinito).
# This uses the new Python orchestrator (healthcheck + entry init).
python3 -m cli.deploy.development up \
--no-build \
--distro "${INFINITO_DISTRO}"
python3 -m cli.deploy.development up --when-down
# 2) Run tests inside the already running infinito container via the new exec wrapper.
# We keep the old NIX_CONFIG behavior (flake config acceptance) but run it inside the container.