Skip to content

Commit

Permalink
fix: Export MQTT message bus env variables for Keeper (#470)
Browse files Browse the repository at this point in the history
refer to edgexfoundry/edgex-go#4832

Signed-off-by: Jack Chen <jack@iotechsys.com>
  • Loading branch information
jackchenjc authored Oct 9, 2024
1 parent 57a2dee commit 53f3d2d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions compose-builder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,29 @@ ifeq (mqtt-bus, $(filter mqtt-bus,$(ARGS)))
else
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-mqtt-messagebus.yml -f add-mqtt-broker-mosquitto.yml
endif

ifeq (keeper, $(filter keeper,$(ARGS)))
export MESSAGEBUS_AUTHMODE=none
export MESSAGEBUS_HOST=edgex-mqtt-broker
export MESSAGEBUS_PORT=1883
export MESSAGEBUS_PROTOCOL=tcp
export MESSAGEBUS_SECRETNAME=
export MESSAGEBUS_TYPE=mqtt
endif
else
ifeq (nanomq, $(filter nanomq,$(ARGS)))
ERR:=$(error nanomq option is not valid as MessageBus broker in secure mode)
endif
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-mqtt-messagebus.yml -f add-secure-mqtt-messagebus.yml -f add-mqtt-broker-mosquitto.yml -f add-secure-mqtt-broker.yml

ifeq (keeper, $(filter keeper,$(ARGS)))
export MESSAGEBUS_AUTHMODE=usernamepassword
export MESSAGEBUS_SECRETNAME=message-bus
export MESSAGEBUS_HOST=edgex-mqtt-broker
export MESSAGEBUS_PORT=1883
export MESSAGEBUS_PROTOCOL=tcp
export MESSAGEBUS_TYPE=mqtt
endif
endif
endif

Expand Down

0 comments on commit 53f3d2d

Please sign in to comment.