Skip to content

Commit

Permalink
Fix automation script path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 committed Dec 9, 2024
1 parent 55e3e1b commit ca05385
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/docs/developer_guide/local_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ title: 本地调试

### 环境要求

| 环境 | 版本 |
**| 环境 | 版本 |
|:----------------:|:------------------------:|
| npm | 10+ |
| node.js | 18+ |
| jdk | Java8 或者 Java11 |
| maven | 3.8+ |
| lombok | IDEA插件安装 |
| MySQL/PostgreSQL | MySQL5.7+ / PostgreSQL15 |
| MySQL/PostgreSQL | MySQL5.7+ / PostgreSQL15 |**

### 代码克隆

Expand Down
2 changes: 1 addition & 1 deletion script/bin/auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if [ -z "$APP_PORT" ]; then
APP_PORT=8888
fi

# 函数:检查健康检查端点的状态
# Function: Check the status of the health check endpoint
check_health() {
curl --silent --max-time 2 --output /dev/null --write-out "%{http_code}" "http://localhost:$APP_PORT/actuator/health"
}
Expand Down
7 changes: 1 addition & 6 deletions script/bin/init_tools_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ echo -e "${GREEN}Dinky root path: ${APP_HOME} ${RESET}"

sudo chmod +x "${APP_HOME}"/bin/init_*.sh

/init_cleanup.sh
./init_tools_main.sh

EXTENDS_HOME="${APP_HOME}/extends"
if [ ! -d "${EXTENDS_HOME}" ]; then
echo -e "${RED} ${EXTENDS_HOME} Directory does not exist, please check${RESET}"
Expand All @@ -103,7 +100,7 @@ if [ ! -d "${DINKY_LIB}" ]; then
exit 1
fi

# 函数:检查命令是否存在,不存在则尝试安装
# Function: Check whether the command exists, if not, try to install it
check_command() {
local cmd="$1"
echo -e "${BLUE}Check if command: $cmd exists...${RESET}"
Expand Down Expand Up @@ -257,12 +254,10 @@ else
echo -e "${GREEN}The current Flink version number deployed by Dinky:${FLINK_VERSION_SCAN}${RESET}"
fi

# 根据 Dinky 部署的Flink对应的版本号,获取对应的 Flink 版本
CURRENT_FLINK_FULL_VERSION=${version_map[$FLINK_VERSION_SCAN]}

echo -e "${GREEN}Obtain the version number corresponding to the deployed Flink (full version number) based on the scanned current Flink version number: flink-${CURRENT_FLINK_FULL_VERSION}${RESET}"

# 步骤2:获取Dinky部署的Flink对应的版本号,然后下载Flink安装包
while true; do
read -p "It is detected that the Flink version number deployed by Dinky is: ${FLINK_VERSION_SCAN}, and the Flink installation package version number that needs to be downloaded is: flink-${CURRENT_FLINK_FULL_VERSION}-bin-scala_2.12.tgz. Please choose whether to initialize Flink related dependencies?(yes/no/exit)" is_init_flink
is_init_flink=$(echo "$is_init_flink" | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]')
Expand Down

0 comments on commit ca05385

Please sign in to comment.