fix: keep Hermes home aligned in runtime image (#6)

This commit is contained in:
Felipe Domingues 2026-05-30 18:47:27 -03:00 committed by GitHub
parent 697825c505
commit 135b99c74b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

23
tests/test_runtime_env.py Normal file
View file

@ -0,0 +1,23 @@
from __future__ import annotations
from pathlib import Path
import unittest
REPO_ROOT = Path(__file__).resolve().parents[1]
class RuntimeEnvTests(unittest.TestCase):
def test_image_sets_default_hermes_home(self) -> None:
dockerfile = (REPO_ROOT / "Dockerfile").read_text(encoding="utf-8")
self.assertIn("ENV HERMES_HOME=/opt/data/.hermes", dockerfile)
def test_entrypoint_exports_hermes_home_to_child_processes(self) -> None:
entrypoint = (REPO_ROOT / "entrypoint.sh").read_text(encoding="utf-8")
self.assertIn("export HERMES_HOME CONFIG_PATH SOUL_PATH", entrypoint)
if __name__ == "__main__":
unittest.main()