forked from github/dataease
perf: 安装脚本增加任务模块
This commit is contained in:
parent
b8f6930dec
commit
3eaee74baf
@ -13,4 +13,9 @@ spring:
|
|||||||
dataease:
|
dataease:
|
||||||
apisix-api:
|
apisix-api:
|
||||||
domain: http://apisix:9180
|
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
|
@ -52,6 +52,14 @@ function _check_apisix_init() {
|
|||||||
_prepare_apisix
|
_prepare_apisix
|
||||||
fi
|
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() {
|
function _prepare_apisix() {
|
||||||
if [[ -z $DE_APISIX_KEY ]];then
|
if [[ -z $DE_APISIX_KEY ]];then
|
||||||
need_init_apisix=true
|
need_init_apisix=true
|
||||||
@ -132,6 +140,7 @@ function status() {
|
|||||||
function start() {
|
function start() {
|
||||||
echo
|
echo
|
||||||
_check_apisix_init
|
_check_apisix_init
|
||||||
|
_check_task_init
|
||||||
cd ${DE_RUNNING_BASE}
|
cd ${DE_RUNNING_BASE}
|
||||||
${compose_cmd} ${compose_files} up -d
|
${compose_cmd} ${compose_files} up -d
|
||||||
_healthcheck
|
_healthcheck
|
||||||
|
@ -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}/data/{mysql,static-resource,map,etcd_data,geo}
|
||||||
mkdir -p ${DE_RUN_BASE}/apisix/logs
|
mkdir -p ${DE_RUN_BASE}/apisix/logs
|
||||||
mkdir -p ${DE_RUN_BASE}/task/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
|
if [ "${DE_EXTERNAL_MYSQL}" = "false" ]; then
|
||||||
compose_files="${compose_files} -f docker-compose-mysql.yml"
|
compose_files="${compose_files} -f docker-compose-mysql.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user