From 9de78f368babee2057664cfc2d805bbd3902941a Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:17:41 -0400 Subject: [PATCH] ci: add swtpm to docker compose Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- docker-compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index bc7f519..93111e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: