fix(compose): expose INFINITO_SERVICES_DISABLED to the infinito container

CI run 26195893710 surfaced a KeyError when `infinito administration
inventory provision` runs inside the container via
`docker compose exec`. services_disabler.py reads
`os.environ["INFINITO_SERVICES_DISABLED"]` strictly, but the container
env did not carry the variable: it was set on the host shell (from
env/default.env via the env-builder) and forwarded via `-e` only when
the orchestrator detected a non-empty value
(deploy/development/inventory/builder.py:71). With the default empty
value, no `-e` flag was added and the strict read crashed in-container.

Expose the variable through the compose `environment:` block — same
pattern as INFINITO_DNS_IP / INFINITO_DOMAIN / INFINITO_IP4 / IP6 /
PLAYWRIGHT_KEEP / SRC_DIR — so the in-container read is guaranteed
regardless of the orchestrator's `-e` decision.

Validated with `make test` (lint + test-lint + test-external + test-unit
+ test-integration all green).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.7 committed 2026-05-21 02:37:31 +02:00
1 parent a77a570409
commit 28e7c20cfe
1 file changed
+1
+1
View File
@@ -78,6 +78,7 @@ services:
INFINITO_IP4: ${INFINITO_IP4}
INFINITO_IP6: ${INFINITO_IP6}
INFINITO_PLAYWRIGHT_KEEP: ${INFINITO_PLAYWRIGHT_KEEP}
INFINITO_SERVICES_DISABLED: ${INFINITO_SERVICES_DISABLED}
INFINITO_SRC_DIR: ${INFINITO_SRC_DIR}
PYTHONHTTPSVERIFY: "1"
GIT_SSL_NO_VERIFY: "0"