podman wip

This commit is contained in:
johba 2025-09-24 10:57:22 +02:00 committed by root
parent efecc5c348
commit 18d63e14d7
10 changed files with 482 additions and 0 deletions

14
containers/anvil-entrypoint.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
MNEMONIC_FILE=/workspace/onchain/.secret.local
ANVIL_CMD=(anvil --fork-url "${FORK_URL:-https://sepolia.base.org}" --chain-id 31337 --block-time 1 --host 0.0.0.0 --port 8545)
if [[ -f "$MNEMONIC_FILE" ]]; then
MNEMONIC="$(tr -d '\n\r' <"$MNEMONIC_FILE")"
if [[ -n "$MNEMONIC" ]]; then
ANVIL_CMD+=(--mnemonic "$MNEMONIC")
fi
fi
exec "${ANVIL_CMD[@]}"