Skip to content

Commit

Permalink
ci: add swtpm to docker compose
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Jul 14, 2024
1 parent 9fc7a67 commit 9de78f3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,23 @@ services:
networks:
- opi

swtpm:
build:
context: tpm
volumes:
- tpm-data:/swtpm
networks:
- opi
command: ['socket', '--tpm2',
'--server', 'type=unixio,path=/swtpm/swtpm.sock',
'--ctrl', 'type=tcp,port=2322',
'--tpmstate', 'dir=/swtpm',
'--log', 'file=swtpm.log',
'--log', 'level=20',
'--flags', 'not-need-init,startup-clear']

volumes:
tpm-data:
server-certs:
client-certs:
dhcp-leases-folder:
Expand Down

0 comments on commit 9de78f3

Please sign in to comment.