Application for publishing Pulsar messages to MQTT. The application doesn't care about the data content, it only publishes the binary message as-is.
This project depends on transitdata-common project.
Either use released versions from the public GitHub Packages repository (Maven) or build your own and install to local Maven repository:
cd transitdata-common && mvn install
mvn compile
mvn package
- Run this script to build the Docker image
- Pulsar
- Connection to a MQTT broker
MQTT_HAS_AUTHENTICATION
: whether the MQTT broker uses authenticationFILEPATH_USERNAME_SECRET
: path to the file containing the username, default is/run/secrets/mqtt_broker_username
FILEPATH_PASSWORD_SECRET
: path to the file containing the password, default is/run/secrets/mqtt_broker_password
MQTT_BROKER_HOST
: URL of the MQTT brokerMQTT_TOPIC
: MQTT topic where to publish messagesMQTT_MAX_INFLIGHT
: maximum amount of MQTT messages in-flightMQTT_CLIENT_ID
: MQTT client IDMQTT_RETAIN_MESSAGE
: whether to send MQTT messages with retained flagMQTT_KEEP_ALIVE_INTERVAL
: interval for MQTT keep-alive, in seconds