feat: Pulsar distribution service (Simulator → Pulsar → Brokers)
- 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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
RUN pip install --no-cache-dir paho-mqtt requests influxdb-client
|
||||
RUN pip install --no-cache-dir paho-mqtt requests influxdb-client pulsar-client
|
||||
COPY simulator.py /app/
|
||||
EXPOSE 8081
|
||||
# Healthcheck endpoint (simple HTTP server)
|
||||
|
||||
Reference in New Issue
Block a user