npm-package-registry is form none, so the registry pair the lab's clones of mesh-tools-go used is no longer minted. The lab requires forge-account as the build modules do; its clones go over ssh through a git and ssh configuration the mesh writes from that binding. The secret, contributes and MESH_LAB_FORGE_SECRET go. Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
141 lines
2.9 KiB
JSON
141 lines
2.9 KiB
JSON
{
|
|
"module": "lab",
|
|
"version": "1",
|
|
"capabilities": [
|
|
"container-runtime",
|
|
"virtualisation"
|
|
],
|
|
"requires": [
|
|
"npm-package-registry",
|
|
"forge-account",
|
|
"go-toolchain",
|
|
"node-toolchain"
|
|
],
|
|
"binds": {
|
|
"npm-package-registry": "${dir:state}/package-registry.json"
|
|
},
|
|
"data": {
|
|
"own": [
|
|
{
|
|
"id": "work",
|
|
"path": "${dir:work}",
|
|
"class": "cache",
|
|
"why": "the lab's runs, each thrown away"
|
|
}
|
|
]
|
|
},
|
|
"config": {
|
|
"forge": {
|
|
"type": "string",
|
|
"description": "The forge the lab's machines take their packages from, as its address: the operator's, with no default (novox/hq ADR 0112).",
|
|
"trusted": true,
|
|
"required": true
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "work",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh-lab-runs",
|
|
"mode": "0700",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "runtime-env",
|
|
"type": "file",
|
|
"path": "${dir:state}/lab.env",
|
|
"mode": "0600",
|
|
"template": "files/lab.env"
|
|
},
|
|
{
|
|
"id": "forge-git",
|
|
"type": "file",
|
|
"path": "${dir:state}/forge.gitconfig",
|
|
"mode": "0600",
|
|
"template": "files/forge.gitconfig"
|
|
},
|
|
{
|
|
"id": "forge-ssh",
|
|
"type": "file",
|
|
"path": "${dir:state}/forge.ssh",
|
|
"mode": "0600",
|
|
"template": "files/forge.ssh"
|
|
},
|
|
{
|
|
"id": "forge-known-hosts",
|
|
"type": "file",
|
|
"path": "${dir:state}/forge.known_hosts",
|
|
"mode": "0644",
|
|
"template": "files/forge.known_hosts"
|
|
},
|
|
{
|
|
"id": "git",
|
|
"type": "package",
|
|
"package": "git"
|
|
},
|
|
{
|
|
"id": "openssh",
|
|
"type": "package",
|
|
"package": "openssh"
|
|
},
|
|
{
|
|
"id": "make",
|
|
"type": "package",
|
|
"package": "make"
|
|
},
|
|
{
|
|
"id": "python",
|
|
"type": "package",
|
|
"package": "python"
|
|
},
|
|
{
|
|
"id": "file",
|
|
"type": "package",
|
|
"package": "file"
|
|
},
|
|
{
|
|
"id": "iproute2",
|
|
"type": "package",
|
|
"package": "iproute2"
|
|
},
|
|
{
|
|
"id": "incus",
|
|
"type": "package",
|
|
"package": "incus"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"tools/index.js"
|
|
],
|
|
"loads": [
|
|
"tools/index.js"
|
|
],
|
|
"env": {
|
|
"MESH_LAB_WORK": "${dir:work}",
|
|
"MESH_LAB_ENV_FILE": "${dir:state}/lab.env",
|
|
"MESH_LAB_FORGE_BINDING": "${dir:state}/package-registry.json",
|
|
"MESH_LAB_FORGE_GIT": "${dir:state}/forge.gitconfig"
|
|
}
|
|
},
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
}
|
|
]
|
|
}
|
|
}
|