mirror of
https://github.com/autistic-symposium/mev-toolkit.git
synced 2025-04-27 11:19:13 -04:00
18 lines
367 B
Bash
Executable File
18 lines
367 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
PORT=${PORT:-18545}
|
|
|
|
echo "Building local blockchain container"
|
|
|
|
docker build -t <docker container alias> .
|
|
|
|
echo "Starting blockchain network on port $PORT (use rpc URL http://localhost:$PORT)"
|
|
|
|
docker run -it --rm \
|
|
-v $(pwd)/genesis.json:/genesis.json \
|
|
-v $(pwd)/data:/data \
|
|
-p $PORT:8545 \
|
|
<docker container alias>
|