mesh/delivery-group group feat/774-l3-reland rejected: composed together: the checker's verdict at the members' heads (b48c90fea31f): integration: mesh-self-ch…
mesh/delivery closed: a newer head of the same pull request
mesh/check failed: integration: mesh-self-check/cmd/mesh-self-check.TestTheSelfCheckWholeRunsOnTheBus: the run answered {Run:doctor-1793351737-1 At:20…
One commit with exactly the tree of the reviewed head35b4509c0a, on main12c2574c9d, so two compiled programs added and removed on the branch leave no trace in history (issue 1577).
211 lines
4.0 KiB
JSON
211 lines
4.0 KiB
JSON
{
|
|
"module": "showcase",
|
|
"version": "1",
|
|
"templates": "templates",
|
|
"slug": "show",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"provides": [
|
|
{
|
|
"name": "greeting",
|
|
"scope": "mesh",
|
|
"credential": {
|
|
"form": "none"
|
|
}
|
|
}
|
|
],
|
|
"serves": {
|
|
"greeting": {
|
|
"path": "/greeting"
|
|
}
|
|
},
|
|
"requires": [
|
|
"postgres-database"
|
|
],
|
|
"binds": {
|
|
"postgres-database": "${dir:state}/database.json"
|
|
},
|
|
"secrets": {
|
|
"postgres-database": "${dir:state}/database.secret"
|
|
},
|
|
"own-secrets": {
|
|
"broker": "${dir:mesh-state}/broker"
|
|
},
|
|
"claims": [
|
|
{
|
|
"name": "the-showcase",
|
|
"scope": "node"
|
|
}
|
|
],
|
|
"emits": [
|
|
"greeted",
|
|
"acknowledged"
|
|
],
|
|
"consumes": [
|
|
"showcase.greeted"
|
|
],
|
|
"listens": [
|
|
{
|
|
"name": "web",
|
|
"port": 8080,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "the port the daemon itself listens on. The mesh assigns the machine-side number and tells consumers that one (ADR 0038)"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"index.js",
|
|
"tools/index.js",
|
|
"provisioner/index.js",
|
|
"daemon/index.js",
|
|
"step/index.js",
|
|
"report/index.js"
|
|
]
|
|
},
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
},
|
|
{
|
|
"name": "helper",
|
|
"kind": "upstream",
|
|
"from": "alpine@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b"
|
|
},
|
|
{
|
|
"name": "templates",
|
|
"kind": "archive",
|
|
"from": "templates"
|
|
}
|
|
]
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "showcase",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/showcase"
|
|
},
|
|
{
|
|
"id": "logs",
|
|
"type": "access",
|
|
"path": "/var/log",
|
|
"mode": "0755"
|
|
},
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "mesh",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0755",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "settings",
|
|
"type": "file",
|
|
"path": "${dir:state}/showcase.env",
|
|
"mode": "0600",
|
|
"template": "templates/showcase.env"
|
|
},
|
|
{
|
|
"id": "packed",
|
|
"type": "archive",
|
|
"path": "/opt/showcase",
|
|
"artifact": "files",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "net",
|
|
"type": "network",
|
|
"name": "showcase"
|
|
},
|
|
{
|
|
"id": "tooling",
|
|
"type": "package",
|
|
"package": "jq"
|
|
},
|
|
{
|
|
"id": "migrate",
|
|
"type": "process",
|
|
"name": "showcase-migrate",
|
|
"artifact": "code",
|
|
"run": [
|
|
"node",
|
|
"step/index.js"
|
|
],
|
|
"run-once": true,
|
|
"env-file": [
|
|
"${dir:state}/showcase.env"
|
|
]
|
|
},
|
|
{
|
|
"id": "server",
|
|
"type": "process",
|
|
"name": "showcase",
|
|
"artifact": "code",
|
|
"run": [
|
|
"node",
|
|
"daemon/index.js"
|
|
],
|
|
"user": "showcase",
|
|
"env-file": [
|
|
"${dir:state}/showcase.env"
|
|
],
|
|
"restart-on": [
|
|
"settings"
|
|
]
|
|
},
|
|
{
|
|
"id": "reporting",
|
|
"type": "process",
|
|
"name": "showcase-report",
|
|
"artifact": "code",
|
|
"run": [
|
|
"node",
|
|
"report/index.js"
|
|
],
|
|
"schedule": "0 3 * * *",
|
|
"env-file": [
|
|
"${dir:state}/showcase.env"
|
|
]
|
|
},
|
|
{
|
|
"id": "tools",
|
|
"type": "container",
|
|
"name": "the-showcase",
|
|
"artifact": "helper",
|
|
"network": "showcase",
|
|
"volumes": [
|
|
"${dir:mesh-state}/broker:/run/secrets/broker:ro"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "/run/secrets/broker"
|
|
},
|
|
"args": [
|
|
"sleep",
|
|
"infinity"
|
|
]
|
|
}
|
|
],
|
|
"seats": [
|
|
{
|
|
"name": "the-showcase",
|
|
"scope": "node"
|
|
}
|
|
]
|
|
}
|