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 steps 3 and 4 of 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.
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
sudo -i mkdir /var/lib/cudos
- Make sure that you are in the correct directory
git clone --branch v1.0.0 https://github.com/CudoVentures/cudos-node.git CudosNode git clone --branch v1.0.0 https://github.com/CudoVentures/cudos-builders.git CudosBuilders git clone --branch v1.0.0 https://github.com/CudoVentures/cosmos-gravity-bridge.git CudosGravityBridge
Navigate to the
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.