This repository contains a setup script to install and configure Allora chain and workers. It includes steps to add a new user, install dependencies, set up Docker, and configure Allora chain.
- Ubuntu (or a Debian-based Linux distribution)
- User with sudo privileges
-
Clone the repository:
git clone https://github.com/Kitbodee4/allora-basic.git cd allora-basic -
Make the script executable:
chmod +x setup.sh
-
Run the script:
./setup.sh
-
Follow the prompts:
- Enter the new username. #root
- Enter the
HEAD_ID(you can get this by runningcat head-data/keys/identityafter the head keys are created). - Enter the
WALLET_SEED_PHRASE.
The script performs the following steps:
-
System Update and Upgrade:
- Updates and upgrades the system packages.
-
Install Required Packages:
- Installs necessary dependencies such as
curl,git,docker,docker-compose, and more.
- Installs necessary dependencies such as
-
Add a New User:
- Prompts for a new username and adds the user to the system with sudo and docker group permissions.
-
Install Python3 and Pip:
- Installs Python3 and pip.
-
Install Docker:
- Installs Docker and Docker Compose, then adds the new user to the Docker group.
-
Install Go:
- Installs Go programming language.
-
Install Allorad:
- Clones the Allora repository, builds the Allora chain, and sets up the wallet.
-
Setup Workers:
- Clones the basic coin prediction node repository, creates directories for workers, sets permissions, and generates keys for head and workers.
-
Create Docker Compose Configuration:
- Prompts for
HEAD_IDandWALLET_SEED_PHRASE, then generates adocker-compose.ymlfile with the provided information.
- Prompts for
-
Run Docker Compose:
- Builds and starts the Docker containers for the inference service, updater, head, and workers.
**To check the running Docker containers, use the following command:
docker ps
This will display a list of all running Docker containers along with their status and other relevant information.
**To check the logs for worker 1, use the following command:
docker compose logs -f worker-1
**To check the logs for worker 2, use the following command:
docker compose logs -f worker-2
**To check the logs for worker 3, use the following command:
docker compose logs -f worker-3
These commands will follow the logs of the specified worker containers
Please feel free to submit issues, fork the repository, and send pull requests!