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.
74 lines
1.6 KiB
JSON
74 lines
1.6 KiB
JSON
{
|
|
"module": "openai-consumer",
|
|
"version": "1",
|
|
"slug": "openai",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"model-access"
|
|
],
|
|
"binds": {
|
|
"model-access": "/var/lib/openai-consumer/model.json"
|
|
},
|
|
"secrets": {
|
|
"model-access": "/var/lib/openai-consumer/api-key"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"path": "/var/lib/openai-consumer",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"path": "/var/lib/openai-consumer/config",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "apply",
|
|
"type": "container",
|
|
"name": "mesh-openai-consumer-apply",
|
|
"network": "host",
|
|
"schedule": "*/5 * * * *",
|
|
"args": [
|
|
"run",
|
|
"/app/modules/openai-consumer/dist/apply/index.js"
|
|
],
|
|
"volumes": [
|
|
"/var/lib/openai-consumer:/run/state"
|
|
],
|
|
"env": {
|
|
"MESH_MODEL_ACCESS_SECRET_FILE": "/run/state/api-key",
|
|
"MESH_MODEL_ACCESS_BIND_FILE": "/run/state/model.json",
|
|
"MESH_OPENAI_ENV_FILE": "/run/state/config/openai.env",
|
|
"MESH_OPENAI_CREDENTIALS_FILE": "/run/state/config/auth.json"
|
|
},
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|