`run` imports an entrypoint without binding a broker — it exists for a step that works offline and exits. Both the catalogue and amqp-ping subscribe on import, so both died on the first on() with no broker bound.
70 lines
1.4 KiB
JSON
70 lines
1.4 KiB
JSON
{
|
|
"module": "amqp-ping",
|
|
"slug": "ping",
|
|
"version": "1",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"amqp"
|
|
],
|
|
"contributes": {},
|
|
"binds": {
|
|
"amqp": "/var/lib/amqp-ping/amqp.json"
|
|
},
|
|
"secrets": {
|
|
"amqp": "/var/lib/amqp-ping/amqp.secret"
|
|
},
|
|
"own-secrets": {
|
|
"broker": "/var/lib/mesh/amqp-ping/broker"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "mesh-state",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh/amqp-ping",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"path": "/var/lib/amqp-ping",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "amqp-env",
|
|
"type": "file",
|
|
"path": "/var/lib/amqp-ping/amqp.env",
|
|
"mode": "0600",
|
|
"content": "MESH_AMQP_HOST=${bound:amqp:at}\nMESH_AMQP_PORT=${bound:amqp:port}\nMESH_AMQP_USER=${bound:amqp:as}\nMESH_AMQP_VHOST=${bound:amqp:as}\nMESH_AMQP_PASSWORD=${secret:amqp}\n"
|
|
},
|
|
{
|
|
"id": "net",
|
|
"type": "network",
|
|
"name": "amqp-ping"
|
|
},
|
|
{
|
|
"id": "runtime",
|
|
"type": "container",
|
|
"name": "amqp-ping",
|
|
"network": "amqp-ping",
|
|
"env-file": [
|
|
"/var/lib/amqp-ping/amqp.env"
|
|
],
|
|
"restart-on": [
|
|
"amqp-env"
|
|
],
|
|
"artifact": "runtime"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "runtime",
|
|
"kind": "image",
|
|
"from": "Dockerfile"
|
|
}
|
|
]
|
|
}
|
|
}
|