Add docker file, genesis file, and scripts

This commit is contained in:
bt3gl 2022-02-25 16:57:19 +01:00
parent 0fd2eb1442
commit cbfceeb5d4
5 changed files with 207 additions and 0 deletions

17
geth_and_k8s/create_docker.sh Executable file
View file

@ -0,0 +1,17 @@
#!/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>