mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 07:03:56 +02:00

* create containers with nix * updated README.md * added SPDX license headers Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
13 lines
368 B
Bash
13 lines
368 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2024 Matter Labs
|
|
#
|
|
|
|
# This script is used to extract the signature of a gramine docker image.
|
|
# Usage: ./extract-sig.sh <image-name> <tee-name> <output-file>
|
|
# Example: ./extract-sig.sh tva tee-vault-admin
|
|
|
|
id=$(docker create $1)
|
|
trap 'docker rm -v $id' EXIT
|
|
docker cp "$id:/app/$2.sig" "$3"
|