Skip to content

Commit

Permalink
update implementation file to json
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Feb 13, 2025
1 parent b882f15 commit e021bad
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
localConfig.yml
docker/implemenation.yml
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ To run your implementation against all test suites from one location, you can us

## Setup

Make sure you are in the `docker` directory, then copy the `localConfig` example file:
Make sure you are in the `docker` directory, then copy the `implementation` example file:
```bash
cd ./docker
cp localConfig.example.yml localConfig.yml
cp implementation.example.yml implementation.yml
```
Edit the local config details to match your implementation.

Expand Down
19 changes: 17 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- localConfig.yml
- implementation.yml
services:
vc-data-model-v2:
build: https://github.com/w3c/vc-data-model-2.0-test-suite.git#allure-in-docker
Expand All @@ -13,6 +13,8 @@ services:
configs:
- source: localConfig.cjs
target: /test-suite/localConfig.cjs
- source: implementation.json
target: /test-suite/implementation.json
labels:
- traefik.enable=true
- traefik.http.routers.vc-data-model.rule=Host(`vc-data-model.docker.localhost`)
Expand All @@ -29,4 +31,17 @@ services:
ports:
- 80:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/run/docker.sock:/var/run/docker.sock:ro


configs:
localConfig.cjs:
content: |
module.exports = {
settings: {
enableInteropTests: true
},
implementations: [
require('/test-suite/implementation.json')
]
};
38 changes: 38 additions & 0 deletions docker/implementation.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
configs:
implementation.json:
content: |
{
"name": "My Company",
"implementation": "My Implementation Name",
"issuers": [
{
"id": "",
"endpoint": "",
"options": {},
"tags": [
"vc2.0"
]
}
],
"verifiers": [
{
"id": "",
"endpoint": "",
"options": {},
"tags": [
"vc2.0"
]
}
],
"vpVerifiers": [
{
"id": "",
"endpoint": "",
"options": {},
"tags": [
"vc2.0"
]
}
]
}
34 changes: 0 additions & 34 deletions docker/localConfig.example.yml

This file was deleted.

0 comments on commit e021bad

Please sign in to comment.