At a high level:
- Docker support can be achieved by allowing people to specify the property
docker instead of endpoint in a manifest file
- Test suites could run a pre-test function that pulls all the docker images and starts them with a sequential port
- The Endpoint class would then test against
localhost:port/credentials/issue etc.
{
"issuers": [{
"id": "did:key:zFoo#docker",
"docker": "https://my-docker-image/implementation"
}]
}
An existing library for running docker images from node exists here: https://www.npmjs.com/package/docker-compose
It includes the ability to pull and run docker images: https://pdmlab.github.io/docker-compose/api.html
Implementations inside of a docker image would need to run with out authorization.
These implementations could then be composed in a localImplementationsConfig.cjs allowing an implementer to create a playlist of sorts for implementations they want to run against.
At a high level:
dockerinstead ofendpointin a manifest filelocalhost:port/credentials/issueetc.An existing library for running docker images from node exists here: https://www.npmjs.com/package/docker-compose
It includes the ability to pull and run docker images: https://pdmlab.github.io/docker-compose/api.html
Implementations inside of a docker image would need to run with out authorization.
These implementations could then be composed in a
localImplementationsConfig.cjsallowing an implementer to create a playlist of sorts for implementations they want to run against.