The 21 media/home modules, the SaaS tool modules (cloudflare-dns, confluence, gitlab, jira), model-usage, and the model-access trio get the same Dockerfile + build section as batch 1. Scheduled-only modules (anthropic-consumer, anthropic-manager, openai-consumer) deliberately declare no MESH_TOOL_MODULES — every container of theirs names its command. mosquitto's run-once bootstrap container builds from the same artifact. Modules with third-party deps (model-usage: pg; anthropic-manager: tweetnacl) install them beside their compiled code. Also fixes cloudflare-dns's package.json, unparseable since its description lost a closing quote. Deliberately still without build sections: builder and mesh-controller (the foundation builds them by its own path), distribution (provides the artifact store — building it through itself is refused by design), route-proxy (cross-repo build context, deferred), and the upstream-image-only modules, which have no code to build.
85 lines
2.0 KiB
JSON
85 lines
2.0 KiB
JSON
{
|
|
"module": "anthropic-manager",
|
|
"version": "1",
|
|
"slug": "anthmgr",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"model-access"
|
|
],
|
|
"binds": {
|
|
"model-access": "/var/lib/mesh/anthropic-manager/model.json"
|
|
},
|
|
"secrets": {
|
|
"model-access": "/var/lib/mesh/anthropic-manager/refresh-token"
|
|
},
|
|
"own-secrets": {
|
|
"broker": "/var/lib/mesh/anthropic-manager/broker"
|
|
},
|
|
"emits": [
|
|
"module.anthropic-manager.usage.read"
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/anthropic-manager",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "out",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/anthropic-manager/out",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "refresh",
|
|
"type": "container",
|
|
"name": "mesh-anthropic-manager-refresh",
|
|
"network": "host",
|
|
"schedule": "*/5 * * * *",
|
|
"args": [
|
|
"run",
|
|
"/app/modules/anthropic-manager/dist/refresh/index.js"
|
|
],
|
|
"volumes": [
|
|
"/var/lib/mesh/anthropic-manager/broker:/run/secrets/broker:ro",
|
|
"/var/lib/mesh/anthropic-manager:/run/state"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "/run/secrets/broker",
|
|
"MESH_ANTHROPIC_LICENCE": "personal",
|
|
"MESH_MODEL_ACCESS_SECRET_FILE": "/run/state/refresh-token",
|
|
"MESH_MODEL_ACCESS_BIND_FILE": "/run/state/model.json",
|
|
"MESH_ANTHROPIC_ACCESS_OUT": "/run/state/out/access-token",
|
|
"MESH_ANTHROPIC_GRANT_OUT": "/run/state/out/grant.json",
|
|
"MESH_ANTHROPIC_USAGE_OUT": "/run/state/out/usage.json",
|
|
"MESH_TOOLS_MAIN": "/app/dist/main.js"
|
|
},
|
|
"artifact": "runtime"
|
|
}
|
|
],
|
|
"build": {
|
|
"on": [
|
|
{
|
|
"arg": "BUILD_BASE",
|
|
"module": "mesh-tools",
|
|
"artifact": "build"
|
|
},
|
|
{
|
|
"arg": "RUNTIME_BASE",
|
|
"module": "mesh-tools",
|
|
"artifact": "runtime"
|
|
}
|
|
],
|
|
"artifacts": [
|
|
{
|
|
"name": "runtime",
|
|
"kind": "image",
|
|
"from": "Dockerfile"
|
|
}
|
|
]
|
|
}
|
|
}
|