This section allows you to deploy the first Network Node. Once you set this up, you can test it using Running Tests section.
There are several options to up and run Node:
You can run Private Node immediately. You don't even need to clone the repo. Use this command:
docker run -d --name NAME_OF_YOUR_NODE -p 9944:9944 --entrypoint /usr/local/bin/node-template cerebellumnetwork/turnkey-private-blockchain-network --dev --ws-external
In order to have a local Docker image, build from sources, you can use the following steps:
- Clone this repository.
- Run command to build locally (from the root directory of this repo):
docker build .
In order to run ready-to-use Private Node, you can use docker-compose
file provided by this repository with all pre-configured parameters. Follow the steps:
- Clone this repository
- Run command to start a single node development chain (from the root directory of this repo):
./scripts/docker_run.sh
In order to build and run Private Node without docker you need to have cargo
installed and properly configured. Follow the steps:
- Clone this repository
- Run command to build from sources (from the root directory of this repo)
cargo +nightly-2020-10-06 build
- Once it finished (it could take a while), you can run node with command:
./target/debug/node-template --dev --tmp
You can check more supported flags using command:
./target/debug/node-template --help