incubator/burrow/examples/1.human_deployment/README.md
The steps to utilize the chart with a human deploying the blockchain network to the Kubernetes cluster and then deploying smart contracts and configuring the accounts on the blockchain, the following sequence can be utilized.
The easiest way to interact with burrow is via the monax toolkit. This command line application is built to provide a seamless toolkit for developers seeking to provision and operate burrow networks. The below deployment sequence relies upon a developer having that toolkit installed on their local machine.
This sequence also requires the very fine jq binary to be installed.
The following is an example deployment sequence.
CHAIN_NODES=4
CHAIN_ID=myTestChain
monax chains make $CHAIN_ID \
--account-types=Root:1,Validator:$CHAIN_NODES
genesisFile=$(cat \
$HOME/.monax/chains/$CHAIN_ID/$(echo $CHAIN_ID \
| tr '[:upper:]' '[:lower:]')_root_000/genesis.json \
| jq -rc '@base64')
keysFilesPrefix="keysFiles."
keysFiles=""
for d in $HOME/.monax/chains/$CHAIN_ID/*validator*/; do
key=key-$(basename $d | cut -d "_" -f 3)
val=$(cat $d/priv_validator.json | jq -rc '@base64')
keysFiles+=$keysFilesPrefix$key=$val,
done
helm install \
--set chain.name=$CHAIN_ID \
--set chain.id=$CHAIN_ID \
--set chain.numberOfNodes=$CHAIN_NODES \
--set genesisFile=$genesisFile \
--set $keysFiles \
incubator/burrow
unset $keysFiles