diff --git a/installer/dataease/templates/application.yml b/installer/dataease/templates/application.yml index a9e6a81f78..27b355fd86 100644 --- a/installer/dataease/templates/application.yml +++ b/installer/dataease/templates/application.yml @@ -13,4 +13,9 @@ spring: dataease: apisix-api: domain: http://apisix:9180 - key: DE_APISIX_KEY \ No newline at end of file + key: DE_APISIX_KEY +task: + executor: + address: http://sync-task-actuator:9001 + log: + path: /opt/dataease2.0/logs/sync-task/task-handler-log \ No newline at end of file diff --git a/installer/dectl b/installer/dectl index 3ad4b7d1f5..5749d3160d 100644 --- a/installer/dectl +++ b/installer/dectl @@ -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 diff --git a/installer/install.sh b/installer/install.sh index b47d1d7914..883691c886 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -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"