-
Notifications
You must be signed in to change notification settings - Fork 1
Quick Node Deployment
The docker-compose
file on docker
folder of dtcnode project is useful to test the DTC library with nodes deployed on the same machine.
Assuming that docker
and docker-compose
are already installed (as following the Library Testing instructions), you need to start the containers with:
./docker/test.sh
This deploys five nodes and creates configuration files using a threshold value of 3.
The deployed nodes are listening on the following local ports:
- 9871
- 9872
- 9873
- 9874
- 9875
Then, you should copy the generated config.yaml
file in /etc/dtc/config.yaml
. on your testing machine. The database file is going to be by default in /tmp/dtc.sqlite3
, so it is not recommended for persistent testing.
When you want to stop the nodes, you can simply stop the ./docker/test.sh
script.
Repository Links