Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Export MQTT message bus env variables for Keeper #470

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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