Dockerfile to host the istanbul-tools binary in a go:alpine image.
- check condition: if
/efs/shared/genesis.jsonNOT exist - load
/efs/shared/config.tomlfrom EFS - generate
Istanbul extra-data - load
genesis.jsontemplate from ConfigMapgenesis-template - add
Istanbul extra-datato genesis and generate/efs/shared/genesis.json
Container:
docker run -it --name init04 init04 /efs/shared /genesis-template/genesis.jsonUsage: write_genesis.py [-h] -t TEMPLATE_PATH -f GENESIS_PATH -e EXTRA
Generate genesis.json file
optional arguments:
-h, --help show this help message and exit
-t TEMPLATE_PATH Path to template file for genesis.json
-f GENESIS_PATH Path to genesis.json
-e EXTRA Encoded Istanbul extra-data