perf: 安装脚本增加任务模块

This commit is contained in:
fit2cloud-chenyw 2024-01-12 13:02:11 +08:00
parent b8f6930dec
commit 3eaee74baf
3 changed files with 16 additions and 2 deletions

View File

@ -13,4 +13,9 @@ spring:
dataease:
apisix-api:
domain: http://apisix:9180
key: DE_APISIX_KEY
key: DE_APISIX_KEY
task:
executor:
address: http://sync-task-actuator:9001
log:
path: /opt/dataease2.0/logs/sync-task/task-handler-log

View File

@ -52,6 +52,14 @@ function _check_apisix_init() {
_prepare_apisix
fi
}
function _check_task_init() {
if [[ $DE_INSTALL_MODE != "community" ]];then
_prepare_task
fi
}
function _prepare_task() {
compose_files="${compose_files} -f docker-compose-task.yml"
}
function _prepare_apisix() {
if [[ -z $DE_APISIX_KEY ]];then
need_init_apisix=true
@ -132,6 +140,7 @@ function status() {
function start() {
echo
_check_apisix_init
_check_task_init
cd ${DE_RUNNING_BASE}
${compose_cmd} ${compose_files} up -d
_healthcheck

View File

@ -64,7 +64,7 @@ mkdir -p ${DE_RUN_BASE}/{cache,logs,conf}
mkdir -p ${DE_RUN_BASE}/data/{mysql,static-resource,map,etcd_data,geo}
mkdir -p ${DE_RUN_BASE}/apisix/logs
mkdir -p ${DE_RUN_BASE}/task/logs
chmod 777 ${DE_RUN_BASE}/apisix/logs ${DE_RUN_BASE}/data/etcd_data
chmod 777 ${DE_RUN_BASE}/apisix/logs ${DE_RUN_BASE}/data/etcd_data ${DE_RUN_BASE}/task/logs
if [ "${DE_EXTERNAL_MYSQL}" = "false" ]; then
compose_files="${compose_files} -f docker-compose-mysql.yml"