The following dependencies is required to run this program:
- Docker
- Golang
To build the docker image, run the following commands from the root directory of this project:
docker build -t kadlab .
Modify the number of nodes in the docker-compose file.
replicas: 50
Run this command from the root directory of the project to start the containers:
docker-compose up
To terminate and remove the containers, run command:
docker-compose down
Run this command to attach a containers ongoing input and output:
docker attach <container_name>
The CLI has three main functions. Available commands:
- put \<string> (stores data on k closest nodes to hash)
- get \<string> (fetches data object if it is stored in the network)
- exit (terminates this node)