Node Environment Preparation
This section will take you through preparing the environment on your nodes in preparation for running the Cudos software. You must complete the following two steps on every node that will take part in the Cudos network:
- Install required packages
- Build the node images
Install required packages
You must ensure that you have the following installed:
Docker 20.10.6 or above (latest version recommended) Refer to the Docker installation and upgrade guide for your OS.
Docker Compose 1.29.1 or above (latest version recommended) Refer to the Docker Compose Installation and Upgrade guide for your OS.
Git Refer to the Git installation guide for your OS.
JQ JQ is a command line JSON processor that you will use to extract data from JSON documents. Refer to the JQ installation guide for your OS.
Build the node images
After installing all prerequisites, you can build the Cudos node images.
TIP
This document describes installing the platform as root. It is also possible to install the platform as a non-root user using sudo.
- Change to root user and create a directory to use as your workspace (we will assume you call the directory
cudos
)
sudo -i
mkdir /var/lib/cudos
- Make sure that you are in the correct directory
cd /var/lib/cudos
Clone the correct branches from the CudosNode , CudosBuilders, and CudosGravityBridge repositories, renaming the folders CudosNode, CudosBuilders, and CudosGravityBridge:
git clone --depth 1 --branch v0.4.0 https://github.com/CudoVentures/cudos-node.git CudosNode
git clone --depth 1 --branch v0.3.3 https://github.com/CudoVentures/cudos-builders.git CudosBuilders
git clone --depth 1 --branch v0.4.0 https://github.com/CudoVentures/cosmos-gravity-bridge.git CudosGravityBridge
Navigate to the CudosBuilders/docker/binary-builder
directory
cd CudosBuilders/docker/binary-builder
Build the docker image of the binary by running the command:
docker-compose --env-file binary-builder.arg -f binary-builder.yml -p cudos-binary-builder up --build --detach
You have now prepared your node environment. If you are going to build a standalone Node, please continue to Standalone Node Build. If you are building a Validator Cluster, please repeat the above steps for every node that is going to be in your cluster, then continue to Validator Cluster Build.