Public Repository

Last pushed: 3 months ago
Short Description
Simple aggregator for the IoT application
Full Description

Dockerfile example for latest tag

FROM python:2.7-slim

WORKDIR /usr/src/aggregator

COPY . .

RUN pip install --no-cache-dir kafka-python

RUN pip install --no-cache-dir cassandra-driver

ENTRYPOINT [ "python", "./aggregate.py" ]

Arguments

First argument specifies IP address of the Kafka broker (or server)
Second argument specifies IP address of the Cassandra server
For v2 tag: Third argument specifies IP address of the Elasticsearch server

Unfortunately, the default ports are hard-coded on the module (for Kafka:9092, Cassandra:9042 and Elasticsearch:9200*). You can change them by editing the python module (inside the container). The reference for the python module is: https://github.com/RajsimmanRavi/iot_app_cascon/tree/master/aggregator

Docker Pull Command
Owner
perplexedgamer

Comments (0)