w3c / vc-test-suite-implementations

List of W3C Verifiable Credentials Implementations
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

Docker Support Road Map #28

Open aljones15 opened 3 months ago

aljones15 commented 3 months ago

At a high level:

  1. Docker support can be achieved by allowing people to specify the property docker instead of endpoint in a manifest file
  2. Test suites could run a pre-test function that pulls all the docker images and starts them with a sequential port
  3. 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.