This commit is contained in:
2026-08-04 09:05:28 +08:00
parent fdb1e8af1c
commit 3afcff320a
116 changed files with 6749 additions and 749 deletions
+11
View File
@@ -0,0 +1,11 @@
brokerClusterName=BaiyueCluster
brokerName=baiyue-file-export-broker
brokerId=0
brokerRole=ASYNC_MASTER
flushDiskType=ASYNC_FLUSH
deleteWhen=04
fileReservedTime=72
autoCreateTopicEnable=false
autoCreateSubscriptionGroup=false
listenPort=10911
brokerIP1=__BROKER_IP__
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
case "${ROCKETMQ_BROKER_IP:-}" in
""|localhost|127.0.0.1|__BROKER_IP__|*'${'*)
echo "ROCKETMQ_BROKER_IP must be an explicit client-reachable address" >&2
exit 1
;;
esac
sed "s/__BROKER_IP__/${ROCKETMQ_BROKER_IP}/g" /config/broker.conf.template > /tmp/broker.conf
if grep -Eq '__BROKER_IP__|\$\{' /tmp/broker.conf; then
echo "broker.conf still contains an unresolved placeholder" >&2
grep -nE '__BROKER_IP__|\$\{' /tmp/broker.conf >&2
exit 1
fi
exec sh mqbroker -n rocketmq-namesrv:9876 -c /tmp/broker.conf