mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
- 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
23 lines
505 B
Python
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())
|