mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +02:00
feat: initial commit
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
aff4dd30bd
commit
89ffbd35a8
123 changed files with 16508 additions and 0 deletions
18
assets/replace-sig.sh
Normal file
18
assets/replace-sig.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This script is used to replace the signature of a gramine docker image with a new one.
|
||||
#
|
||||
# Usage: ./replace-sig.sh <image> <new-signature-file> <old-signature-file>
|
||||
# Example: ./replace-sig.sh tva tee-vault-admin.sig /app/tee-vault-admin.sig
|
||||
|
||||
DOCKERFILE="Dockerfile-tmp-$$"
|
||||
|
||||
trap 'rm -f $DOCKERFILE' EXIT
|
||||
|
||||
cat > "$DOCKERFILE" <<EOF
|
||||
FROM $1
|
||||
COPY $2 $3
|
||||
EOF
|
||||
|
||||
docker build -f "$DOCKERFILE" -t "$1" .
|
Loading…
Add table
Add a link
Reference in a new issue