Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2abe9bfd
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2abe9bfd
编写于
3月 22, 2021
作者:
H
huili
提交者:
GitHub
3月 22, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5526 from taosdata/xiaoping/add_test_case
[TD-3413]<test>: make docker cluster support enterprise version
上级
12e0be6e
81d62650
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
13 deletion
+44
-13
tests/pytest/cluster/clusterEnvSetup/basic.py
tests/pytest/cluster/clusterEnvSetup/basic.py
+1
-1
tests/pytest/cluster/clusterEnvSetup/buildClusterEnv.sh
tests/pytest/cluster/clusterEnvSetup/buildClusterEnv.sh
+43
-12
未找到文件。
tests/pytest/cluster/clusterEnvSetup/basic.py
浏览文件 @
2abe9bfd
...
...
@@ -96,7 +96,7 @@ parser.add_argument(
'-v'
,
'--version'
,
action
=
'store'
,
default
=
'2.0.1
7
.1'
,
default
=
'2.0.1
8
.1'
,
type
=
str
,
help
=
'the version of the cluster to be build, Default is 2.0.17.1'
)
parser
.
add_argument
(
...
...
tests/pytest/cluster/clusterEnvSetup/buildClusterEnv.sh
浏览文件 @
2abe9bfd
#!/bin/bash
echo
"Executing buildClusterEnv.sh"
CURR_DIR
=
`
pwd
`
IN_TDINTERNAL
=
"community"
if
[
$#
!=
6
]
;
then
echo
"argument list need input : "
...
...
@@ -68,23 +69,48 @@ function prepareBuild {
fi
if
[
!
-e
$DOCKER_DIR
/TDengine-server-
$VERSION
-Linux-x64
.tar.gz
]
||
[
!
-e
$DOCKER_DIR
/TDengine-arbitrator-
$VERSION
-Linux-x64
.tar.gz
]
;
then
cd
$CURR_DIR
/../../../../packaging
cd
$CURR_DIR
/../../../../packaging
echo
$CURR_DIR
echo
$IN_TDINTERNAL
echo
"generating TDeninger packages"
./release.sh
-v
edge
-n
$VERSION
>>
/dev/null
if
[
!
-e
$CURR_DIR
/../../../../release/TDengine-server-
$VERSION
-Linux-x64
.tar.gz
]
;
then
echo
"no TDengine install package found"
exit
1
if
[[
"
$CURR_DIR
"
==
*
"
$IN_TDINTERNAL
"
*
]]
;
then
pwd
./release.sh
-v
cluster
-n
$VERSION
>>
/dev/null 2>&1
else
pwd
./release.sh
-v
edge
-n
$VERSION
>>
/dev/null 2>&1
fi
if
[
!
-e
$CURR_DIR
/../../../../release/TDengine-arbitrator-
$VERSION
-Linux-x64
.tar.gz
]
;
then
echo
"no arbitrator install package found"
exit
1
if
[[
"
$CURR_DIR
"
==
*
"
$IN_TDINTERNAL
"
*
]]
;
then
if
[
!
-e
$CURR_DIR
/../../../../release/TDengine-enterprise-server-
$VERSION
-Linux-x64
.tar.gz
]
;
then
echo
"no TDengine install package found"
exit
1
fi
if
[
!
-e
$CURR_DIR
/../../../../release/TDengine-enterprise-arbitrator-
$VERSION
-Linux-x64
.tar.gz
]
;
then
echo
"no arbitrator install package found"
exit
1
fi
else
if
[
!
-e
$CURR_DIR
/../../../../release/TDengine-server-
$VERSION
-Linux-x64
.tar.gz
]
;
then
echo
"no TDengine install package found"
exit
1
fi
if
[
!
-e
$CURR_DIR
/../../../../release/TDengine-arbitrator-
$VERSION
-Linux-x64
.tar.gz
]
;
then
echo
"no arbitrator install package found"
exit
1
fi
fi
cd
$CURR_DIR
/../../../../release
mv
TDengine-server-
$VERSION
-Linux-x64
.tar.gz
$DOCKER_DIR
mv
TDengine-arbitrator-
$VERSION
-Linux-x64
.tar.gz
$DOCKER_DIR
if
[[
"
$CURR_DIR
"
==
*
"
$IN_TDINTERNAL
"
*
]]
;
then
mv
TDengine-enterprise-server-
$VERSION
-Linux-x64
.tar.gz
$DOCKER_DIR
mv
TDengine-enterprise-arbitrator-
$VERSION
-Linux-x64
.tar.gz
$DOCKER_DIR
else
mv
TDengine-server-
$VERSION
-Linux-x64
.tar.gz
$DOCKER_DIR
mv
TDengine-arbitrator-
$VERSION
-Linux-x64
.tar.gz
$DOCKER_DIR
fi
fi
rm
-rf
$DOCKER_DIR
/
*
.yml
...
...
@@ -99,7 +125,12 @@ function clusterUp {
cd
$DOCKER_DIR
docker_run
=
"PACKAGE=TDengine-server-
$VERSION
-Linux-x64.tar.gz TARBITRATORPKG=TDengine-arbitrator-
$VERSION
-Linux-x64.tar.gz DIR=TDengine-server-
$VERSION
DIR2=TDengine-arbitrator-
$VERSION
VERSION=
$VERSION
DATADIR=
$DOCKER_DIR
docker-compose -f docker-compose.yml "
if
[[
"
$CURR_DIR
"
==
*
"
$IN_TDINTERNAL
"
*
]]
;
then
docker_run
=
"PACKAGE=TDengine-enterprise-server-
$VERSION
-Linux-x64.tar.gz TARBITRATORPKG=TDengine-enterprise-arbitrator-
$VERSION
-Linux-x64.tar.gz DIR=TDengine-enterprise-server-
$VERSION
DIR2=TDengine-enterprise-arbitrator-
$VERSION
VERSION=
$VERSION
DATADIR=
$DOCKER_DIR
docker-compose -f docker-compose.yml "
else
docker_run
=
"PACKAGE=TDengine-server-
$VERSION
-Linux-x64.tar.gz TARBITRATORPKG=TDengine-arbitrator-
$VERSION
-Linux-x64.tar.gz DIR=TDengine-server-
$VERSION
DIR2=TDengine-arbitrator-
$VERSION
VERSION=
$VERSION
DATADIR=
$DOCKER_DIR
docker-compose -f docker-compose.yml "
fi
if
[
$NUM_OF_NODES
-ge
2
]
;
then
echo
"create
$NUM_OF_NODES
dnodes"
for
((
i
=
3
;
i<
=
$NUM_OF_NODES
;
i++
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录