forked from github/dataease
refactor: 添加一些安装脚本的控制参数
This commit is contained in:
parent
60bdc03bef
commit
9997102af2
@ -23,6 +23,8 @@ dataease:
|
||||
limit: ${DE_EXPORT_DATASET_LIMIT}
|
||||
origin-list: ${DE_ORIGIN_LIST}
|
||||
login_timeout: ${DE_LOGIN_TIMEOUT}
|
||||
selenium-server: ${DE_SELENIUM_SERVER}
|
||||
dataease-servers: ${DE_SERVERS}
|
||||
task:
|
||||
executor:
|
||||
address: http://sync-task-actuator:9001
|
||||
|
@ -49,18 +49,21 @@ function usage() {
|
||||
}
|
||||
function _generate_compose_file_args() {
|
||||
if [[ $DE_INSTALL_MODE != "community" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-apisix.yml"
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-task.yml ]];then
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-apisix.yml ]] && [[ "$DE_EXTERNAL_APISIX" != "true" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-apisix.yml"
|
||||
fi
|
||||
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-task.yml ]] && [[ "$DE_EXTERNAL_SYNC_TASK" != "true" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-task.yml"
|
||||
fi
|
||||
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-selenium.yml ]];then
|
||||
if [[ -f $DE_RUNNING_BASE/docker-compose-selenium.yml ]] && [[ "$DE_EXTERNAL_SELENIUM" != "true" ]];then
|
||||
compose_files="${compose_files} -f docker-compose-selenium.yml"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
function _check_apisix_init() {
|
||||
if [[ $DE_INSTALL_MODE != "community" ]];then
|
||||
if [[ $DE_INSTALL_MODE != "community" ]] && [[ "$DE_EXTERNAL_APISIX" != "true" ]];then
|
||||
_prepare_apisix
|
||||
fi
|
||||
}
|
||||
|
@ -27,18 +27,31 @@ DE_MYSQL_PASSWORD=Password123@mysql
|
||||
DE_MYSQL_PARAMS="autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true"
|
||||
|
||||
# 定时报告镜像配置
|
||||
## 是否使用外部 Selenium,若使用外部 Selenium,则限制参数无效
|
||||
DE_EXTERNAL_SELENIUM=false
|
||||
## Selenium 服务地址
|
||||
DE_SELENIUM_SERVER=http://de-selenium:4444/wd/hub
|
||||
## selenium 镜像 CPU 限制
|
||||
DE_SELENIUM_CPU_LIMIT='1'
|
||||
## selenium 镜像 内存 限制
|
||||
DE_SELENIUM_MEM_LIMIT=2g
|
||||
|
||||
# APISIX配置
|
||||
## 是否使用外部 APISIX
|
||||
DE_EXTERNAL_APISIX=false
|
||||
## 使用外部 APISIX,则下列参数无效
|
||||
## APISIX dashboard 端口
|
||||
DE_APISIX_DASHBOARD_PORT=9000
|
||||
## APISIX 端口
|
||||
DE_APISIX_PORT=9080
|
||||
|
||||
# 同步模块配置
|
||||
## 是否使用外部同步模块
|
||||
DE_EXTERNAL_SYNC_TASK=false
|
||||
|
||||
# 其他配置
|
||||
DE_EXPORT_VIEWS_LIMIT=100000
|
||||
DE_EXPORT_DATASET_LIMIT=100000
|
||||
DE_ORIGIN_LIST="http://localhost:8000"
|
||||
## DataEase 节点列表,用于多节点部署,节点以逗号分隔,如 192.168.1.101,192.168.1.102
|
||||
DE_SERVERS=dataease
|
||||
|
Loading…
Reference in New Issue
Block a user