Coder Social home page Coder Social logo

docker-swarm's Introduction

Docker Swarm Voi Participation node setup

Prerequisites

  • curl installed. If on a system without curl installed, follow applicable OS guidance for installing curl.
  • Ability to use sudo

Supported OS and compute platforms

OS

  • Debian
  • Ubuntu

Compute platform

  • arm64
  • amd64 (x86_64)

New to Voi

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"

Have an existing account/address with mnemonic that you want to use

export VOINETWORK_IMPORT_ACCOUNT=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"

Want to install with no wallet setup included

export VOINETWORK_SKIP_WALLET_SETUP=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"

Set custom telemetry name

export VOINETWORK_TELEMETRY_NAME="my_custom_telemetry_name"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/VoiNetwork/docker-swarm/main/install.sh)"

Custom telemetry name can be combined with other environment variables.

Uninstalling

  • rm -rf ~/voi/algod
  • docker stack rm voinetwork
  • docker swarm leave --force

Useful scripts

This section of the README closely follows commands outlined in the excellent D13 guide for setting up a Voi participation node under Ubuntu 22.04. The guide can be found here: https://d13.co/posts/set-up-voi-participation-node/

Commands are wrapped in shell scripts that execute into a running docking container.

Creating a node wallet

~/voi/bin/create-wallet.sh <wallet_name>

Creating an account

~/voi/bin/create-account.sh 

Get account mnemonic

~/voi/bin/get-account-mnemonic.sh <account_address>

Importing an account

~/voi/bin/import-account.sh

Generating participation key

~/voi/bin/generate-participation-key.sh <account_address>

Get account status

~/voi/bin/get-account-status.sh <account_address>

Go online

~/voi/bin/go-online.sh <account_address>

Go offline

~/voi/bin/go-offline.sh <account_address>

Goal

~/voi/bin/goal.sh <goal_command>

Open bash in AVM container

~/voi/bin/bash.sh

Debugging

Startup state for services in stack

docker stack ps --no-trunc voinetwork

Replication state for services in stack

docker service ls

Pull log files

docker service logs voinetwork_algod

Inspect service

docker inspect voinetwork_algod

TODO

  • Add apprise / alarming on scaling events in docker-compose.yml
  • Add participation key rotation
  • Add mechanism for updating scripts and compose files (and swarm) on top of existing installation
  • Adds script for participation key management

docker-swarm's People

Contributors

hsoerensen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.