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.
72 lines
1.5 KiB
JSON
72 lines
1.5 KiB
JSON
{
|
|
"module": "gitlab",
|
|
"version": "1",
|
|
"own-secrets": {
|
|
"token": "/var/lib/gitlab/token",
|
|
"broker": "/var/lib/mesh/gitlab/broker"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/gitlab",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"path": "/var/lib/gitlab",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "file",
|
|
"path": "/var/lib/gitlab/config.json",
|
|
"merge": "json",
|
|
"content": "{}",
|
|
"mode": "0600"
|
|
},
|
|
{
|
|
"id": "runtime",
|
|
"type": "container",
|
|
"name": "mesh-runtime-gitlab",
|
|
"network": "host",
|
|
"volumes": [
|
|
"/var/lib/gitlab/config.json:/run/config/config.json:ro",
|
|
"/var/lib/gitlab/token:/run/secrets/token:ro",
|
|
"/var/lib/mesh/gitlab/broker:/run/secrets/broker:ro"
|
|
],
|
|
"env": {
|
|
"MESH_GITLAB_TOKEN_FILE": "/run/secrets/token",
|
|
"MESH_GITLAB_CONFIG_FILE": "/run/config/config.json",
|
|
"MESH_BROKER_FILE": "/run/secrets/broker"
|
|
},
|
|
"artifact": "runtime"
|
|
}
|
|
],
|
|
"capabilities": [
|
|
"container-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"
|
|
}
|
|
]
|
|
}
|
|
}
|