This commit is contained in:
孙小云 2025-06-11 09:52:30 +08:00
parent dae4a91e51
commit cb8e8a3605
2 changed files with 1 additions and 25 deletions

View File

@ -1,24 +0,0 @@
#!/bin/bash
source ../environment.sh
# 检查必要的环境变量
if [ -z "$NETWORK" ] || [ -z "$KAFKA_UI_PORT" ] || [ -z "$KAFKA_UI_NAME" ] || [ -z "$KAFKA_UI_IMAGE" ] || [ -z "$KAFKA_UI_MEMORY" ]; then
echo "Error: Required environment variables are not set"
exit 1
fi
# 停止并删除已存在的容器
docker stop ${KAFKA_UI_NAME} 2>/dev/null
docker rm ${KAFKA_UI_NAME} 2>/dev/null
# 启动 Kafka UI
docker run -d \
--name ${KAFKA_UI_NAME} \
--network ${NETWORK} \
-p ${KAFKA_UI_PORT}:8080 \
-e KAFKA_CLUSTERS_0_NAME=local \
-e KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=${KAFKA_NAME}:${KAFKA_PORT} \
-e JAVA_TOOL_OPTIONS="-Xmx${KAFKA_UI_MEMORY}" \
${KAFKA_UI_IMAGE}
echo "Kafka UI started at http://localhost:${KAFKA_UI_PORT}"

View File

@ -118,7 +118,7 @@ docker exec ${MINIO_NAME} rm /tmp/mqtt-policy.json
# 创建所需的 bucket
echo "创建所需的 bucket..."
for bucket in default image ta-tech-image th-airport th-dsp video; do
for bucket in default image ta-tech-image th-airport th-dsp video th-hhz; do
echo "处理 bucket: $bucket"
# 检查 bucket 是否存在
if ! docker exec ${MINIO_NAME} mc ls myminio/$bucket >/dev/null 2>&1; then