Skip to content

Kitbodee4/allora-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Allora Chain Setup Script

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.

Prerequisites

  • Ubuntu (or a Debian-based Linux distribution)
  • User with sudo privileges

How to Use

  1. Clone the repository:

    git clone https://github.com/Kitbodee4/allora-basic.git
    cd allora-basic
  2. Make the script executable:

    chmod +x setup.sh
  3. Run the script:

    ./setup.sh
  4. Follow the prompts:

    • Enter the new username. #root
    • Enter the HEAD_ID (you can get this by running cat head-data/keys/identity after the head keys are created).
    • Enter the WALLET_SEED_PHRASE.

Script Details

The script performs the following steps:

  1. System Update and Upgrade:

    • Updates and upgrades the system packages.
  2. Install Required Packages:

    • Installs necessary dependencies such as curl, git, docker, docker-compose, and more.
  3. Add a New User:

    • Prompts for a new username and adds the user to the system with sudo and docker group permissions.
  4. Install Python3 and Pip:

    • Installs Python3 and pip.
  5. Install Docker:

    • Installs Docker and Docker Compose, then adds the new user to the Docker group.
  6. Install Go:

    • Installs Go programming language.
  7. Install Allorad:

    • Clones the Allora repository, builds the Allora chain, and sets up the wallet.
  8. Setup Workers:

    • Clones the basic coin prediction node repository, creates directories for workers, sets permissions, and generates keys for head and workers.
  9. Create Docker Compose Configuration:

    • Prompts for HEAD_ID and WALLET_SEED_PHRASE, then generates a docker-compose.yml file with the provided information.
  10. Run Docker Compose:

    • Builds and starts the Docker containers for the inference service, updater, head, and workers.

Checking Running Docker Containers

**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.

Checking Logs

**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

Contributing

Please feel free to submit issues, fork the repository, and send pull requests!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages