These scripts allow for running one or many containerized qrl nodes.
Using docker-compose you can run many in parallel or even your local testnet.
Follow the corresponding instructions:
Windows | https://docs.docker.com/docker-for-windows/install/ |
Linux | https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ |
OSX | https://docs.docker.com/docker-for-mac/install/ |
Warning: there have been some problems when using Docker in Raspberry PIs. Until I get one to play with and prepare some detailed instructions, using docker in RPI3s is not supported or recommended.
Install docker compose
pip install docker-compose
Get the docker scripts running this:
git clone https://github.com/jleni/qrl_docker
cd qrl_docker
docker-compose build; docker-compose up
to stop:
docker-compose down
The configuration file for docker-compose is docker-compose.yml
At the moment, it will create a few nodes that will run in parallel. Fortunately the file format is quite descriptive and you can find lots of information online.
Each node will get the wallet from a corresponding ./volumes/node???/.qrl
docker-compose up
The first time it will take a little longer as everything has to be downloaded. After that things will be much faster.
docker-compose up -d
When running in daemon node, you may want to see what is going on
docker-compose logs
docker-compose ps
docker exec -it qrldocker_node1_1 /bin/bash
replace qrldocker_node1_1
with the node name. You can get them all with docker-compose ps
docker-compose down
Flush will remove everything !!!! Be careful if you have other containers !!!