refactor: update version vars

This commit is contained in:
xuwei-fit2cloud
2025-05-08 15:20:58 +08:00
parent c74881dac5
commit b39eb1e43e
16 changed files with 59 additions and 69 deletions

View File

@@ -1,18 +1,18 @@
FROM registry.cn-qingdao.aliyuncs.com/dataease/alpine-openjdk21-jre
STOPSIGNAL SIGTERM
RUN mkdir -p /opt/apps/config \
/opt/dataease2.0/drivers/ \
/opt/dataease2.0/cache/ \
/opt/dataease2.0/data/map \
/opt/dataease2.0/data/static-resource/ \
/opt/dataease2.0/data/appearance/ \
/opt/dataease2.0/data/exportData/ \
/opt/dataease2.0/data/i8n/ \
/opt/dataease2.0/data/plugin/
/opt/dataease3.0/drivers/ \
/opt/dataease3.0/cache/ \
/opt/dataease3.0/data/map \
/opt/dataease3.0/data/static-resource/ \
/opt/dataease3.0/data/appearance/ \
/opt/dataease3.0/data/exportData/ \
/opt/dataease3.0/data/i8n/ \
/opt/dataease3.0/data/plugin/
ADD drivers/* /opt/dataease2.0/drivers/
ADD mapFiles/ /opt/dataease2.0/data/map/
ADD staticResource/ /opt/dataease2.0/data/static-resource/
ADD drivers/* /opt/dataease3.0/drivers/
ADD mapFiles/ /opt/dataease3.0/data/map/
ADD staticResource/ /opt/dataease3.0/data/static-resource/
WORKDIR /opt/apps

View File

@@ -974,7 +974,7 @@ export default {
auth_method: 'Authentication Method',
passwd: 'Username and Password',
kerbers_info:
'Please make sure krb5.Conf, Keytab Key, have been added to the path: /opt/dataease2.0/conf',
'Please make sure krb5.Conf, Keytab Key, have been added to the path: /opt/dataease3.0/conf',
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
please_select_left: 'Please select from the left',
@@ -3843,7 +3843,7 @@ export default {
auth_method: 'Authentication method',
passwd: 'Username and password',
kerbers_info:
'Please make sure krb5.Conf and Keytab Key have been added to the path: /opt/dataease2.0/conf',
'Please make sure krb5.Conf and Keytab Key have been added to the path: /opt/dataease3.0/conf',
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
data_base: 'Database name',

View File

@@ -940,7 +940,7 @@ export default {
data_source_table: '資料來源表',
auth_method: '認證方式',
passwd: '使用者名稱密碼',
kerbers_info: '請確保krb5.Conf、Keytab Key已新增至路徑/opt/dataease2.0/conf',
kerbers_info: '請確保krb5.Conf、Keytab Key已新增至路徑/opt/dataease3.0/conf',
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
please_select_left: '請從左邊選擇',
@@ -3734,7 +3734,7 @@ export default {
data_source_table: '資料來源表',
auth_method: '認證方式',
passwd: '使用者名稱密碼',
kerbers_info: '請確保krb5.Conf、Keytab Key已新增至路徑/opt/dataease2.0/conf',
kerbers_info: '請確保krb5.Conf、Keytab Key已新增至路徑/opt/dataease3.0/conf',
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
data_base: '資料庫名稱',

View File

@@ -942,7 +942,7 @@ export default {
data_source_table: '数据源表',
auth_method: '认证方式',
passwd: '用户名密码',
kerbers_info: '请确保 krb5.Conf、Keytab Key已经添加到路径/opt/dataease2.0/conf',
kerbers_info: '请确保 krb5.Conf、Keytab Key已经添加到路径/opt/dataease3.0/conf',
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
please_select_left: '请从左侧选择',
@@ -3739,7 +3739,7 @@ export default {
data_source_table: '数据源表',
auth_method: '认证方式',
passwd: '用户名密码',
kerbers_info: '请确保 krb5.Conf、Keytab Key已经添加到路径/opt/dataease2.0/conf',
kerbers_info: '请确保 krb5.Conf、Keytab Key已经添加到路径/opt/dataease3.0/conf',
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
data_base: '数据库名称',

View File

@@ -6,11 +6,11 @@ services:
container_name: apisix-dashboard
restart: always
volumes:
- ${DE_BASE}/dataease2.0/apisix/dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
- ${DE_BASE}/dataease3.0/apisix/dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
ports:
- ${DE_APISIX_DASHBOARD_PORT}:9000
networks:
dataease-network:
dataease-network3:
apisix:
image: registry.cn-qingdao.aliyuncs.com/dataease/apisix:3.6.0-debian
@@ -19,26 +19,26 @@ services:
- TZ=Asia/Shanghai
restart: always
volumes:
- ${DE_BASE}/dataease2.0/apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
- ${DE_BASE}/dataease2.0/apisix/logs:/usr/local/apisix/logs
- ${DE_BASE}/dataease2.0/apisix/plugins/cas-auth.lua:/usr/local/apisix/apisix/plugins/cas-auth.lua
- ${DE_BASE}/dataease2.0/apisix/plugins/openid-connect.lua:/usr/local/apisix/apisix/plugins/openid-connect.lua
- ${DE_BASE}/dataease3.0/apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
- ${DE_BASE}/dataease3.0/apisix/logs:/usr/local/apisix/logs
- ${DE_BASE}/dataease3.0/apisix/plugins/cas-auth.lua:/usr/local/apisix/apisix/plugins/cas-auth.lua
- ${DE_BASE}/dataease3.0/apisix/plugins/openid-connect.lua:/usr/local/apisix/apisix/plugins/openid-connect.lua
depends_on:
- etcd
ports:
- ${DE_APISIX_PORT}:9080
networks:
dataease-network:
dataease-network3:
etcd:
image: registry.cn-qingdao.aliyuncs.com/dataease/etcd:3.5.10
container_name: apisix-etcd
restart: always
volumes:
- ${DE_BASE}/dataease2.0/data/etcd_data:/bitnami/etcd
- ${DE_BASE}/dataease3.0/data/etcd_data:/bitnami/etcd
environment:
ETCD_ENABLE_V2: "true"
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: "http://apisix-etcd:2379"
networks:
dataease-network:
dataease-network3:

View File

@@ -10,10 +10,10 @@ services:
timeout: 3s
retries: 10
env_file:
- ${DE_BASE}/dataease2.0/conf/mysql.env
- ${DE_BASE}/dataease3.0/conf/mysql.env
volumes:
- ${DE_BASE}/dataease2.0/conf/my.cnf:/etc/mysql/conf.d/my.cnf
- ${DE_BASE}/dataease2.0/bin/mysql:/docker-entrypoint-initdb.d/
- ${DE_BASE}/dataease2.0/data/mysql:/var/lib/mysql
- ${DE_BASE}/dataease3.0/conf/my.cnf:/etc/mysql/conf.d/my.cnf
- ${DE_BASE}/dataease3.0/bin/mysql:/docker-entrypoint-initdb.d/
- ${DE_BASE}/dataease3.0/data/mysql:/var/lib/mysql
networks:
- dataease-network
- dataease-network3

View File

@@ -16,4 +16,4 @@ services:
- SE_NODE_MAX_SESSIONS=5
- TZ=Asia/Shanghai
networks:
- dataease-network
- dataease-network3

View File

@@ -4,6 +4,6 @@ services:
image: registry.cn-qingdao.aliyuncs.com/dataease/dataease-sync-task:DE_TAG
container_name: sync-task-actuator
volumes:
- ${DE_BASE}/dataease2.0/logs:/opt/dataease2.0/logs
- ${DE_BASE}/dataease3.0/logs:/opt/dataease3.0/logs
networks:
- dataease-network
- dataease-network3

View File

@@ -9,21 +9,21 @@ services:
ports:
- ${DE_PORT}:8100
volumes:
- ${DE_BASE}/dataease2.0/conf:/opt/apps/config
- ${DE_BASE}/dataease2.0/logs:/opt/dataease2.0/logs
- ${DE_BASE}/dataease2.0/data/static-resource:/opt/dataease2.0/data/static-resource
- ${DE_BASE}/dataease2.0/cache:/opt/dataease2.0/cache
- ${DE_BASE}/dataease2.0/data/geo:/opt/dataease2.0/data/geo
- ${DE_BASE}/dataease2.0/data/appearance:/opt/dataease2.0/data/appearance
- ${DE_BASE}/dataease2.0/data/exportData:/opt/dataease2.0/data/exportData
- ${DE_BASE}/dataease2.0/data/plugin:/opt/dataease2.0/data/plugin
- ${DE_BASE}/dataease2.0/data/font:/opt/dataease2.0/data/font
- ${DE_BASE}/dataease2.0/data/i18n:/opt/dataease2.0/data/i18n
- ${DE_BASE}/dataease3.0/conf:/opt/apps/config
- ${DE_BASE}/dataease3.0/logs:/opt/dataease3.0/logs
- ${DE_BASE}/dataease3.0/data/static-resource:/opt/dataease3.0/data/static-resource
- ${DE_BASE}/dataease3.0/cache:/opt/dataease3.0/cache
- ${DE_BASE}/dataease3.0/data/geo:/opt/dataease3.0/data/geo
- ${DE_BASE}/dataease3.0/data/appearance:/opt/dataease3.0/data/appearance
- ${DE_BASE}/dataease3.0/data/exportData:/opt/dataease3.0/data/exportData
- ${DE_BASE}/dataease3.0/data/plugin:/opt/dataease3.0/data/plugin
- ${DE_BASE}/dataease3.0/data/font:/opt/dataease3.0/data/font
- ${DE_BASE}/dataease3.0/data/i18n:/opt/dataease3.0/data/i18n
depends_on:
DE_MYSQL_HOST:
condition: service_healthy
networks:
- dataease-network
- dataease-network3
networks:
dataease-network:
dataease-network3:

View File

@@ -3,7 +3,7 @@ action=$1
target=$2
DE_BASE=/opt
DE_RUNNING_BASE=${DE_BASE}/dataease2.0
DE_RUNNING_BASE=${DE_BASE}/dataease3.0
need_init_apisix=false
compose_files="-f docker-compose.yml"
compose_cmd="docker-compose"
@@ -153,7 +153,7 @@ import json
import re
latest_release=""
release_pattern="v2\.\d+\.\d+$"
release_pattern="v3\.\d+\.\d+$"
def get_releases(page):
try:

View File

@@ -32,9 +32,9 @@ function check_and_prepare_env_params() {
cd ${CURRENT_DIR}
if [ -f /usr/bin/dectl ]; then
v2_version=$(dectl version | head -n 2 | grep "v2.")
v2_version=$(dectl version | head -n 2 | grep "v3.")
if [[ -z $v2_version ]];then
echo "系统当前版本不是 DataEase v2 版本系列,不支持升级到 v2,请检查离线包版本。"
echo "系统当前版本不是 DataEase v3 版本系列,不支持升级到 v3,请检查离线包版本。"
exit 1;
fi
# 获取已安装的 DataEase 的运行目录
@@ -59,8 +59,8 @@ function check_and_prepare_env_params() {
DE_BASE=$DE_BASE_OLD
export DE_BASE=$DE_BASE_OLD
fi
if [[ -d $DE_BASE ]] && [[ -f $DE_BASE/dataease2.0/.env ]]; then
source $DE_BASE/dataease2.0/.env
if [[ -d $DE_BASE ]] && [[ -f $DE_BASE/dataease3.0/.env ]]; then
source $DE_BASE/dataease3.0/.env
INSTALL_TYPE='upgrade'
conf_install_mode=$(prop $CURRENT_DIR/install.conf DE_INSTALL_MODE)
@@ -86,7 +86,7 @@ function check_and_prepare_env_params() {
function set_run_base_path() {
log_title "设置运行目录"
DE_RUN_BASE=$DE_BASE/dataease2.0
DE_RUN_BASE=$DE_BASE/dataease3.0
CONF_FOLDER=${DE_RUN_BASE}/conf
TEMPLATES_FOLDER=${DE_RUN_BASE}/templates
log_content "运行目录 $DE_RUN_BASE"
@@ -282,16 +282,6 @@ function load_de_images() {
function set_de_service() {
log_title "配置 DataEase 服务"
if [[ -f /etc/init.d/dataease ]];then
if which chkconfig >/dev/null 2>&1;then
chkconfig dataease >/dev/null
if [ $? -eq 0 ]; then
chkconfig --del dataease
fi
fi
rm -f /etc/init.d/dataease
fi
if [[ ! -f /etc/systemd/system/dataease.service ]];then
log_content "配置 dataease Service"
cp ${DE_RUN_BASE}/bin/dataease/dataease.service /etc/systemd/system/

View File

@@ -55,6 +55,6 @@ if test -n "$(docker images | grep 'registry.cn-qingdao.aliyuncs.com/dataease')"
fi
# 清理 DataEase 运行目录及命令行工具 dectl
rm -rf ${DE_BASE}/dataease2.0 /usr/bin/dectl
rm -rf ${DE_BASE}/dataease3.0 /usr/bin/dectl
echo "DataEase 服务卸载完成"

View File

@@ -41,9 +41,9 @@ public class StaticResourceConstants {
public static String getHomeData() {
if (ModelUtils.isDesktop()) {
return ConfigUtils.getConfig("dataease.path.data", "/opt/dataease2.0/data");
return ConfigUtils.getConfig("dataease.path.data", "/opt/dataease3.0/data");
} else {
return "/opt/dataease2.0/data";
return "/opt/dataease3.0/data";
}
}
}

View File

@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
@Order(1000)
public class DeI18nStarter implements ApplicationRunner {
@Value("${dataease.path.i18n:file:/opt/dataease2.0/data/i18n/custom}")
@Value("${dataease.path.i18n:file:/opt/dataease3.0/data/i18n/custom}")
private String i18nPath;
@Override

View File

@@ -12,7 +12,7 @@ import java.util.Objects;
*/
public class ConfigUtils {
public static String configPath = "opt" + File.separator + "dataease2.0" + File.separator + "config" + File.separator + "application.yml";
public static String configPath = "opt" + File.separator + "dataease3.0" + File.separator + "config" + File.separator + "application.yml";
public static String getConfig(String key, String defaultValue) {
try {

View File

@@ -26,7 +26,7 @@ import java.util.jar.JarFile;
* @Author Junjun
*/
public abstract class DataEaseDatasourcePlugin extends Provider implements DataEasePlugin {
private final String DEFAULT_FILE_PATH = "/opt/dataease2.0/drivers/plugin";
private final String DEFAULT_FILE_PATH = "/opt/dataease3.0/drivers/plugin";
@Override