Skip to content

A very simple script to automatically configure farmer using the docker-compose tool in a docker environment

License

Notifications You must be signed in to change notification settings

harodggg/subspace-farmer-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

Subspace farmer script

A very simple script to automatically configure farmer using the docker-compose tool in a docker environment

K8S Using

image

## Docker Swarm Using

image

K8s Helm Using

git clone reg
cd  reg
helm --name="" ./

image

Docker support

1.Using

docker run -v $(pwd):/app ghcr.io/harodggg/balance-json:v2.0.3 swarm.json

Only supports ubuntu 20.04 lts

1. Using generate-key and query-balance

1.1 Install Python3 Package

sudo apt-get install build-essential python3-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev

Using Python Version >= 3.8

python3.8 -m pip install upgrade pip  or pip3 install upgrade pip
python3.8 -m pip install -r requirements.txt

2. Using run-farmer

2.1 Init Env

    ./run-farmer init

image

2.2 Create Farmer

    ./run-farmer create [only-farmer / only-node]

image

2.2.1 create only farmer

    docker network create farmer-network
  ./run-farmer create only-farmer

image

2.3 Upgrade Farmer

    ./run-farmer upgrade [only-farmer / only-node]

2.4 Delete Farmer

    ./run-farmer delete [only-farmer / only-node]

2.4.1 Delete Only-Farmer

    ./run-farmer delete only-farmer

image

2.5 Stop Farmer

    ./run-farmer stop [only-farmer / only-node]

About

A very simple script to automatically configure farmer using the docker-compose tool in a docker environment

Resources

License

Security policy

Stars

Watchers

Forks

Packages