mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +02:00
11 lines
334 B
Bash
11 lines
334 B
Bash
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# 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"
|