Files
mesh-catalog/modules/redis/module.json
T
jschoubben 35ff67bda0
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…
Design 47's last milestones: the keeper, self-check, healers, hand-acts, provisioner, vault, artifact sweep, disk readings, credential forms (issues 774, 1952, 1953, 1954, 1955)
One commit with exactly the tree of the reviewed head 35b4509c0a, on main 12c2574c9d, so two compiled programs added and removed on the branch leave no trace in history (issue 1577).
2026-10-30 02:21:51 +01:00

158 lines
3.1 KiB
JSON

{
"module": "redis",
"version": "1",
"provides": [
{
"name": "redis-cache",
"scope": "mesh",
"identity": {
"in": "a Redis ACL user and key prefix"
},
"credential": {
"form": "pair"
}
}
],
"requires": [
"secret"
],
"capabilities": [
"container-runtime"
],
"emits": [
"cache.provisioned",
"cache.deprovisioned"
],
"consumes": [
"redis.cache.provisioned",
"redis.cache.deprovisioned"
],
"serves": {
"redis-cache": {
"port": 6379
}
},
"receives": {
"redis-cache": "${dir:grants}/mesh.json"
},
"grants": {
"redis-cache": "${dir:grants}"
},
"secrets": {
"secret": "${dir:state}/default.secret"
},
"listens": [
{
"name": "cache",
"port": 6379,
"protocol": "tcp",
"from": "mesh",
"why": "modules on any machine that were granted a cache"
}
],
"data": {
"own": [
{
"id": "data",
"path": "${dir:data}",
"class": "cache",
"why": "the cache's own snapshot"
}
],
"consumers": {
"redis-cache": {
"class": "cache",
"why": "a cache: nothing in this mesh requires it, and a consumer that kept data in it would be using a cache as a store"
}
}
},
"resources": [
{
"id": "state",
"type": "directory",
"mode": "0700",
"place": ".",
"unknown": "program"
},
{
"id": "grants",
"type": "directory",
"mode": "0700",
"unknown": "program"
},
{
"id": "data",
"type": "directory",
"mode": "0700",
"owner": "999:1000",
"unknown": "program"
},
{
"id": "server-conf",
"type": "file",
"path": "${dir:state}/redis.conf",
"mode": "0600",
"template": "files/redis.conf",
"owner": "999:1000"
},
{
"id": "net",
"type": "network",
"name": "redis"
},
{
"id": "server",
"type": "container",
"name": "redis",
"image": "redis@sha256:520775a41a63e77e06c73e35d2fd9cc15921a609516818796b4ecbb813078bc7",
"health": {
"kind": "tcp",
"endpoint": "cache"
},
"network": "redis",
"ports": [
"6379"
],
"volumes": [
"${dir:data}:/data",
"${dir:state}/redis.conf:/etc/redis/redis.conf:ro"
],
"args": [
"/etc/redis/redis.conf"
],
"restart-on": [
"server-conf"
]
}
],
"build": {
"artifacts": [
{
"name": "code",
"kind": "bundle",
"language": "typescript",
"entrypoints": [
"index.js",
"tools/index.js",
"provisioner/index.js"
],
"loads": [
"index.js",
"tools/index.js",
"provisioner/index.js"
],
"env": {
"MESH_RECEIVES": "${dir:grants}/mesh.json",
"MESH_PROVISION_REDIS": "127.0.0.1:${port:6379}",
"MESH_PROVISION_PASSWORD_FILE": "${dir:state}/default.secret"
}
},
{
"name": "files",
"kind": "archive",
"from": "files"
}
]
}
}