Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Latest commit

 

History

History
47 lines (33 loc) · 1.97 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.97 KB

MQTT Docker Publisher

CircleCI Coverage Status codecov BCH compliance

An MQTT Docker publisher for the BigBoat ecosystem.

About

MQTT Docker publisher publishes data from the Docker API to an MQTT Server. Currently the following topics are published:

Each topic is preceded by the value of MQTT_TOPIC_NS. This namespace mechanism allows multiple publishers to use the same mqtt server.

How to run

docker run \
  -e DOCKER_HOST=tcp://dockerhost:2375 \
  -e MQTT_URL=mqtt://mqttserver \
  -e MQTT_TOPIC_NS=/docker \
  --name docker-publisher
  ictu/bigboat-docker-publisher

Contributing

If you want to contribute please fork the repo and submit a pull request in order to get your changes merged into the main branch.

Development

Below you find an example of how to run the agent for development.

#!/bin/bash

DOCKER_HOST=tcp://dockerhost:2375 \
MQTT_URL=mqtt://mqttserver \
MQTT_TOPIC_NS=/docker \
nodemon index.coffee