1.4.0 • Published 2 years ago
depl_poa_x64_arm v1.4.0
Deployer for Ethereum PoA network on X64 and ARM computers
This deployer can deploy an Ethereum channel running the PoA protocol on computers running X64 and ARMv7 CPU (Raspberry Pi 3B and 4). It handles the creation of accounts and configuring these accounts as sealers in the genesis file of the blockchain channel automatically.
Supported version of Ethereum: v1.10.11
Prerequisites
On the host running this module:
- Having
ansibleinstalled and ready to use. Installation instruction: https://docs.ansible.com/ansible/latest/getting_started/index.html - Having
nodejsinstalled and ready to use - Having
yarnpackage manager installed and ready to use - Having
sshaccess to a user namednvalon the computers where blockchain nodes would be deployed - Have
sshinto each of the computer once
On the computers running blockchain nodes:
- Having
dockerinstalled - Having a
nvaluser which can control thedocker(i.e.,nvalbelongs to thedockeruser group)
Instructions
# Create a folder
mkdir /path/to/directory/
cd /path/to/directory/
# Install package
yarn add depl_poa_x64_arm
# Create blockchain network architecture
# Note down the exp-name that you declare in this step
npx depl_poa_x64_arm -i /path/to/id_rsa create
# Deploy the blockchain network
npx depl_poa_x64_arm -i /path/to/id_rsa deploy exp-name
# Teardown the blockchain network after you are done with it.
npx depl_poa_x64_arm -i /path/to/id_rsa teardown exp-nameTroubleshooting
By default, the tool looks for private key file (id_rsa_nval) the same folder where you run the npx command. You can change where it looks for ssh key by providing the --ssh-key-path <string> option. The provided path must be ABSOLUTE PATH.