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

An MQTT Docker publisher for the BigBoat ecosystem

License

Notifications You must be signed in to change notification settings

bigboat-io/publisher

Repository files navigation

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

About

An MQTT Docker publisher for the BigBoat ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published