Peerplays QA environment
This set of docker images contains a self-contained, Peerplays QA environment. It features 16 Peerplays nodes(running 27 witnesses), 16 Bitcoin SONs, 16 Hive SONs, 1 Redis and 1 faucet node.
Hardware Requirements
Here's a guideline for the hardware requirements for building the QA environment:
Memory
Storage
OS
32GB
~300GB
Ubuntu 18.04
Of course, the requirements will be highly dependent on what you're using the environment for. Intensive development of an enterprise-level application will need much more resources than simply exploring your own private environment.
Software Requirements
Following are the software requirements:
Ubuntu 18.04
20.10.8 or higher
2.33.0 or higher
* If any of the software mentioned above is not installed, please use the following pages to install them:
ubuntu: https://ubuntu.com/server/docs/installation
docker: https://docs.docker.com/engine/install/ubuntu/
git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
Getting the Code
Clone the peerplays-utils project in gitlab to get the latest setup scripts for Peerplays QA environment:
Setting up the QA Environment
The environment setup needs to be run in the following order:
BITCOIN
HIVE
PEERPLAYS
REDIS
FAUCET
Note: After running the Peerplays initialization script, wait for the next maintenance block before start using the environment for testing.
Before starting initialization, make sure that all nodes are down.
BITCOIN
The first step is to build the bitcoin container. Open a new terminal and run the following command:
This will take some time to complete. Once you see the logs on the terminal have stopped, open a new terminal and login to the newly built Bitcoin container with the following command:
Once inside the container run init-network.sh script to setup the Bitcoin environment:
HIVE
Now we need to build the HIVE container. Open a new terminal and run the following command:
This will take some time to complete. Wait till the HIVE blockchain starts generating blocks(Generated block #1 with timestamp ....) and then open a new terminal and login to the newly built HIVE container with the following command:
Once inside the container run init-network.sh script to setup the HIVE environment:
PEERPLAYS
Next, we need to build the Peerplays container. Open a new terminal and run the following command:
This will take some time to complete. Wait till the HIVE blockchain starts generating blocks(Generated block...) and then open a new terminal and login to the newly built HIVE container with the following command:
Once inside the container run init-network.sh script to setup the HIVE environment:
Note: Wait for the next maintenance block before start using the environment
Redis
Next, we build the Redis container. Open a new terminal and run the following command:
Wait for the message "Ready to accept connections"
Faucet
The final container which we need to build is faucet. Open a new terminal and run the following command:
Wait for the message "Running on http://10.11.12.50:5000/ (Press CTRL+C to quit)"
Viewing logs of bitcoin/hive/peerplays nodes
In order to view the logs of the containers following commands can be used:
Bitcoin
2. Hive
3. Peerplays
There are 16 peerplays nodes running and in this example, we are trying to see the logs of peerplays10 node.
Note: In case you want to see the logs of peerplays01 node replace peerplays10 with peerplays01 in the command given above.
Node properties
The IP address and the configuration of the nodes in the environment are given below:
Monitoring resource usage
To monitor computer resource usage by docker containers in real-time, use the following command:
The output will be similar to this:
Last updated
Was this helpful?
