Files
computer-playbook/cli/deploy/test/up.py
T
kevinveenbirkenbach c0b03bb95a refactor(up): route make up through python orchestrator and entry.sh init
- Replace direct docker compose up with python-based orchestrator (Compose.up)
- Centralize stack startup, systemd readiness wait, and init logic in Compose.up
- Run container init via scripts/docker/entry.sh instead of make target
- Remove duplicate systemd wait in deploy test runner
- Add cli.deploy.test.up entrypoint for make up integration

https://chatgpt.com/share/6962a2c8-0f50-800f-8bfb-2efd16adaf40
2026-01-10 20:04:33 +01:00

23 lines
505 B
Python

from __future__ import annotations
import os
from pathlib import Path
from typing import Optional
from .compose import Compose
def _repo_root_from_here() -> Path:
return Path(__file__).resolve().parents[3]
def main(argv: Optional[list[str]] = None) -> int:
repo_root = _repo_root_from_here()
distro = os.environ.get("INFINITO_DISTRO", "arch")
Compose(repo_root=repo_root, distro=distro).up()
return 0
if __name__ == "__main__": # pragma: no cover
raise SystemExit(main())