Image to run a decentralized reputation system using Tangle Hornet
5.4K
Image to run a decentralized reputation system using Tangle Hornet.
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 larsid/reputation-system:<tagname>
You can also override some parameters using the -e parameter, to set environment variables, the parameters you can override are listed below:
| Parameter | Description | Default value |
|---|---|---|
| BUFFER_MAX_LEN | The maximum length of the transaction buffer | 128 |
| ZMQ_SOCKET_PROTOCOL | Defines which messaging system protocol is used by the network to notify the status of transactions. | tcp |
| ZMQ_SOCKET_URL | Defines the URL of the messaging system used by the network to notify the status of transactions. | zmq.devnet.iota.org |
| ZMQ_SOCKET_PORT | Defines which messaging system port is used by the network to notify the status of transactions. | 5556 |
| GROUP | The gateway group. | cloud/c1 |
| COLLECT_TIME | Device collect time. | 200 |
| PUBLISH_TIME | Device publish time. | 2000 |
| NODE_TYPE | Type of the node [1 -> Honest, 2 -> Malicious, 3 -> Selfish, 4 -> Corrupt, 5 -> Disturbing]. | 1 |
| HONESTY_RATE | Node's honesty percentage, the higher the more honest. | 50 |
| CHECK_DEVICE | Time in seconds to check if a new device has been connected. | 5 |
| REQUEST_DATA | Time in seconds to request data from a randomly connected device. | 30 |
| WAIT_DEVICE_RESPONSE | Time in seconds to wait for the requested device to respond. | 10 |
| CHECK_NODES_SERVICE | Time in seconds to check if a node has a service. | 45 |
| WAIT_NODES_RESPONSE | Time in seconds to wait for the requested node to respond. | 15 |
| CHANGE_DISTURBING_NODE_BEHAVIOR | Time in seconds to check the reputation and change the behavior of the Disturbing node. | 30 |
| USE_CREDIBILITY | Allows credibility in the system. | true |
| USE_LATEST_CREDIBILITY | Allows to use the latest credibility for the reputation. | true |
| API_PORT | Port on which the API will run | 3000 |
| TANGLE_NODE_URL | URL of the Tangle Hornet Node | 127.0.0.1 |
| TANGLE_NODE_PORT | Port of the Tangle Hornet Node | 14265 |
| KMEANS_SCRIPT_PATH | The path where the KMeans script is located | /opt/karaf/etc/python_scripts/kmeans.py |
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 -e NODE_TYPE=1 -e HONESTY_RATE=50 -e CHECK_DEVICE=5 -e REQUEST_DATA=10 -e WAIT_DEVICE_RESPONSE=3 -e TANGLE_NODE_URL=172.18.0.5 larsid/reputation-system:<tagname>
Content type
Image
Digest
sha256:ec04d85b9…
Size
311.5 MB
Last updated
about 2 years ago
docker pull larsid/reputation-system