Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
"""Static contract for the non-root headless container's writable state."""
from __future__ import annotations
from pathlib import Path, PurePosixPath
_REPO_ROOT = Path(__file__).resolve().parents[3]
_DATA_DIR = PurePosixPath("/app/data")
_CONFIG_PATH = _DATA_DIR / "jarvis.toml"
_HOME_DIR = _DATA_DIR / "home"
def test_non_root_image_keeps_config_inside_the_persisted_writable_volume() -> None:
"""The runtime user must never need to write into the application tree."""
dockerfile = (_REPO_ROOT / "Dockerfile").read_text(encoding="utf-8")
compose = (_REPO_ROOT / "docker-compose.yml").read_text(encoding="utf-8")
assert f"JARVIS_CONFIG={_CONFIG_PATH.as_posix()}" in dockerfile
assert f"JARVIS_DATA_DIR={_DATA_DIR.as_posix()}" in dockerfile
assert f"HOME={_HOME_DIR.as_posix()}" in dockerfile
assert _CONFIG_PATH.parent == _DATA_DIR
assert f"jarvis-data:{_DATA_DIR.as_posix()}" in compose
chown_data = "chown -R jarvis:jarvis /app/data"
non_root_user = "USER jarvis"
assert chown_data in dockerfile
assert "mkdir -p /app/data/home" in dockerfile
assert "libportaudio2 curl git" in dockerfile
assert non_root_user in dockerfile
assert dockerfile.index(chown_data) < dockerfile.index(non_root_user)
def test_the_image_is_named_dodaios_and_existing_deployments_keep_their_volume() -> None:
"""The rename moves the image name, never the data an earlier image left behind."""
import yaml
dockerfile = (_REPO_ROOT / "Dockerfile").read_text(encoding="utf-8")
compose = yaml.safe_load((_REPO_ROOT / "docker-compose.yml").read_text(encoding="utf-8"))
assert 'org.opencontainers.image.title="Dodaios"' in dockerfile
assert "docker build -t dodaios ." in dockerfile
service = compose["services"]["jarvis"]
assert service["image"] == "dodaios:local"
assert service["volumes"] == [f"jarvis-data:{_DATA_DIR.as_posix()}"]
assert set(compose["volumes"]) == {"jarvis-data"}