- Fix Pulsar: use binary client (port 6650) instead of non-existent REST /produce API - Add pulsar-client to Dockerfile - Create pulsar/distribution.py: consumes Pulsar and republishes to MQTT (EMQX/Mosquitto), NGSI-LD (Orion/Stellio), FROST - Add docker-compose.distribution.yml for the distribution service - Tested: Messages successfully distributed to EMQX and Orion-LD - Update session resume
6 lines
160 B
Docker
6 lines
160 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
RUN pip install --no-cache-dir pulsar-client paho-mqtt requests
|
|
COPY distribution.py /app/
|
|
CMD ["python", "distribution.py"]
|