How to deploy
January 15, 2021 ยท View on GitHub
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:
Option 1: Run public docker image
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
Option 2: Build docker image locally
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 .
Option 3: Build and run using docker-compose
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
Option 4: Build and run without docker
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