File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,19 @@ docker run -e TANG_LISTEN_PORT=1234 -d --network host -v tang-db:/var/db/tang gh
2121
2222## Manual testing
2323
24+ This could be the basis of a CI job, but for now, outline the manual steps.
25+
2426```
27+ # Optionally build your own container
28+ docker build -t ghcr.io/stackhpc/tang:latest .
29+ # Start a tang container
30+ docker run --rm -e TANG_LISTEN_PORT=1234 --name tang -d --network host -v tang-db:/var/db/tang ghcr.io/stackhpc/tang:latest
31+ # Encrypt some text
2532echo "Hello World" | clevis encrypt tang '{ "url": "http://localhost:1234"}' > secret.jwe
33+ # Stop docker to trigger container deletion
34+ docker stop tang
35+ # Recreate to test persistence of DB
36+ docker run --rm -e TANG_LISTEN_PORT=1234 --name tang -d --network host -v tang-db:/var/db/tang ghcr.io/stackhpc/tang:latest
37+ # Attempt decrypt
2638clevis decrypt < secret.jwe
2739```
You can’t perform that action at this time.
0 commit comments