mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-22 23:44:48 +02:00
Merge branch 'main' into teepot_vault
This commit is contained in:
commit
982fcc363b
1 changed files with 10 additions and 1 deletions
|
@ -15,10 +15,19 @@
|
||||||
User = "root";
|
User = "root";
|
||||||
EnvironmentFile = "-/run/env/env";
|
EnvironmentFile = "-/run/env/env";
|
||||||
};
|
};
|
||||||
path = [ pkgs.docker pkgs.teepot.teepot.tdx_extend ];
|
path = [ pkgs.docker pkgs.teepot.teepot.tdx_extend pkgs.iproute2 ];
|
||||||
script = ''
|
script = ''
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
# wait for vector to initialize itself
|
||||||
|
for i in {1..30}; do
|
||||||
|
if [[ $(ss -H -t -l -n sport = 4318) ]]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Waiting for vector to initialize itself..." >&2
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
DIGEST=''${CONTAINER_DIGEST#sha256:}
|
DIGEST=''${CONTAINER_DIGEST#sha256:}
|
||||||
echo "Measuring $DIGEST" >&2
|
echo "Measuring $DIGEST" >&2
|
||||||
test -c /dev/tdx_guest && tdx-extend --digest "$DIGEST" --rtmr 3
|
test -c /dev/tdx_guest && tdx-extend --digest "$DIGEST" --rtmr 3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue