mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-30 06:46:31 +00:00
feat(tools): rename the i18n lane to tools and give the cache paths one spot
The lane is no longer LibreTranslate-only, so `i18n` is the wrong name for the runner, its compose override, its inventory and its env keys. Renames to `tools` throughout and points the lane at `svc-ai-libretranslate-engine`, which is the role that actually owns the `libretranslate-engine` service key. The six cache host paths were each written out in full. They now derive from `DIR_CACHE`, one plain string in `group_vars/all/05_paths.yml`, via a `cache_paths` handler; the generated values are byte-identical. The handler is registered directly after `cache_stack` rather than late, because `registry_cache_max_size` reads `INFINITO_CACHE_REGISTRY_HOST_PATH` and returns early when it is empty, which silently dropped `INFINITO_CACHE_REGISTRY_MAX_SIZE` from the generated `.env` and broke every `docker compose` invocation that layers `cache.override.yml`. `INFINITO_TOOLS_MODELS_HOST_PATH` derives from the same base, so the model bind the lane mounts follows the cache layout instead of repeating it. The inventory pins `DOCKER_BIND_HOST=0.0.0.0`: the group_vars default keys off `DOCKER_IN_CONTAINER`, which evaluates false for the inner deploy and would leave the lane's services on the runner's loopback. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9b683cc45c
commit
c782208f99
20 files changed
+419
-103
No files matched your search
@@ -128,7 +128,7 @@ class TestComposeUpRetries(unittest.TestCase):
|
||||
"-f",
|
||||
"compose.yml",
|
||||
"-f",
|
||||
"compose/i18n.override.yml",
|
||||
"compose/tools.override.yml",
|
||||
"ps",
|
||||
"-q",
|
||||
"infinito",
|
||||
@@ -174,7 +174,7 @@ class TestComposeUpRetries(unittest.TestCase):
|
||||
"-f",
|
||||
"compose/cache.override.yml",
|
||||
"-f",
|
||||
"compose/i18n.override.yml",
|
||||
"compose/tools.override.yml",
|
||||
"ps",
|
||||
"-q",
|
||||
"infinito",
|
||||
|
||||
Reference in new issue
Block a user