From cb8e8a3605ab25e24061f12f56182ba02be20cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Wed, 11 Jun 2025 09:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/7.kafka-ui.sh | 24 ------------------------ init/8.minio.sh | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100755 init/7.kafka-ui.sh diff --git a/init/7.kafka-ui.sh b/init/7.kafka-ui.sh deleted file mode 100755 index be735f8..0000000 --- a/init/7.kafka-ui.sh +++ /dev/null @@ -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}" \ No newline at end of file diff --git a/init/8.minio.sh b/init/8.minio.sh index 85265e6..14f4c0b 100755 --- a/init/8.minio.sh +++ b/init/8.minio.sh @@ -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