Docker Manifest
Description of a binary manifest for docker-json-runner
In order to run a docker image on your computes network, you will need to create a docker manifest
Example Docker Manifest
{
"*": {
"image": "computes/bin-echo:v1.0.0"
}
}
Add to IPFS
cat manifest.json | ipfs dag put > manifest.hash
> zdpuAxW3FpQGz4zmGHiopN8u6fPDChgqfevZV8RsC2TQbzFPE
Computes will verify this image against the Whitelists to ensure this manifest is allowed.
Example Task
{
"input": {
"dataset": 2
},
"taskDefinition": {
"runner": {
"type": "docker-json-runner",
"manifest": {
"/": "zdpuAxW3FpQGz4zmGHiopN8u6fPDChgqfevZV8RsC2TQbzFPE"
}
},
"result": {
"action": "set",
"destination": {
"dataset": { "/": "zdpuB11j1GMhYUcBauitZD27W8Jb59dt6pd7rEaELFDtwzTgS" },
"path": "echo/results"
}
}
},
"status": {
"/": "zdpuAmf43QTZc8Ejy63ebJUHrKece6C9M26ssRzqXmeW3f57Y"
}
}
Updated about 6 years ago