-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.yml
70 lines (69 loc) · 1.84 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.6'
services:
keylime-verifier:
build:
context: ./docker/fedora/
dockerfile: keylime_py.Dockerfile
image: keylime_py
hostname: 'keylime-verifier'
user: root
volumes:
- secure-volume:/var/lib/keylime
ports:
- "8892:8892"
command: [
"/usr/local/bin/keylime_verifier"
]
keylime-registrar:
build:
context: ./docker/fedora/
dockerfile: keylime_py.Dockerfile
image: keylime_py
hostname: 'keylime-verifier' # this is a bit of poor workaround, will fix in python code
user: root
volumes:
- secure-volume:/var/lib/keylime
ports:
- "8891:8891"
- "8890:8890"
command: ["/root/wait.sh", "/var/lib/keylime/cv_ca/client-cert.crt", "keylime_registrar"]
keylime_agent:
build:
context: ./docker/fedora/
dockerfile: keylime_rust.Dockerfile
image: keylime_rust
hostname: 'keylime-agent'
user: root
volumes:
- ./target/debug/:/rust-keylime
network_mode: host
environment:
- TCTI=tabrmd:bus_type=system
command:
- /bin/bash
- -c
- |
mkdir /tmp/tpmdir
rm -rf /var/run/dbus
mkdir /var/run/dbus
dbus-daemon --system
ls /etc/dbus-1/system.d/
swtpm_setup --tpm2 \
--tpmstate /tmp/tpmdir \
--createek --decryption --create-ek-cert \
--create-platform-cert \
--display
swtpm socket --tpm2 \
--tpmstate dir=/tmp/tpmdir \
--flags startup-clear \
--ctrl type=tcp,port=2322 \
--server type=tcp,port=2321 \
--daemon
tpm2-abrmd \
--logger=stdout \
--tcti=swtpm: \
--allow-root \
--flush-all &
RUST_LOG=keylime_agent=trace /rust-keylime/keylime_agent
volumes:
secure-volume: