larsid/top-k

By larsid

Updated over 3 years ago

Image to calculate Top-K using soft-iot-fog-broker.

Image
Networking
Internet of things
0

10K+

larsid/top-k repository overview

Top-K

Image to calculate Top-K using soft-iot-fog-broker.

Bundles

This image uses larsid/soft-iot-base as base image, so all bundles that larsid/soft- iot -base has it, this image has it too.

How to use this image

Run the image as parent node:
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 -e HAS_NODES=true -e IP=<gateway_ip_address> larsid/top-k:<tagname>

This means that the gateway has some nodes connected to it.

Run the image as children node:
docker run -i -t -p 1883:1883 -p 8181:8181 -p 1099:1099 -p 8101:8101 -p 61616:61616 -p 44444:44444 -e IP_UP=<gateway_above_ip_address> -e IP=<gateway_ip_address> larsid/top-k:<tagname>

This means that the gateway is connected to some gateway above it.

Run the image overriding some parameters:

You can also override some parameters using the -e parameter, to set environment variables, the parameters you can override are listed below:

ParameterDescriptionDefault value
COLLECT_TIMEDevice collect time.200
PUBLISH_TIMEDevice publish time.2000
IP_UPGateway IP address located in the layer above.localhost
PORT_UPPort for connection to the Broker located in the layer above.1883
IPGateway IP address.localhost
PORTPort for connection to the Broker.1883
USERUser to connect to the Broker.karaf
PASSWORDPassword to connect to the Broker.karaf
URL_APIAPI URL to get information from connected devices.http://localhost:8181/cxf/iot-service/devices
HAS_NODESIndicates whether the gateway will be a parent node(true) or a children node(false).false
TIME_OUTMaximum waiting time in seconds for children's response.30
DEBUG_MODEDebug mode.true

Tag summary

Content type

Image

Digest

sha256:875b791f8

Size

433.5 MB

Last updated

over 3 years ago

docker pull larsid/top-k