Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
865b34ef
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看板
未验证
提交
865b34ef
编写于
4月 27, 2022
作者:
sangshuduo
提交者:
GitHub
4月 27, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: packaging script for connector (#11922)
for develop branch [TD-15158]
上级
9b9e8718
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
96 addition
and
59 deletion
+96
-59
packaging/tools/install.sh
packaging/tools/install.sh
+8
-6
packaging/tools/install_client.sh
packaging/tools/install_client.sh
+29
-25
packaging/tools/makeclient.sh
packaging/tools/makeclient.sh
+32
-15
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+27
-13
未找到文件。
packaging/tools/install.sh
浏览文件 @
865b34ef
...
...
@@ -827,9 +827,11 @@ function update_TDengine() {
install_log
install_header
install_lib
# if [ "$pagMode" != "lite" ]; then
# install_connector
# fi
if
[
"
$verMode
"
==
"cluster"
]
;
then
install_connector
fi
install_examples
if
[
-z
$1
]
;
then
install_bin
...
...
@@ -912,9 +914,9 @@ function install_TDengine() {
#install_avro lib
#install_avro lib64
# if [ "$pagMode" != "lite
" ]; then
#
install_connector
#
fi
if
[
"
$verMode
"
==
"cluster
"
]
;
then
install_connector
fi
install_examples
if
[
-z
$1
]
;
then
# install service and client
...
...
packaging/tools/install_client.sh
浏览文件 @
865b34ef
...
...
@@ -21,6 +21,7 @@ tarName="taos.tar.gz"
osType
=
Linux
pagMode
=
full
verMode
=
edge
if
[
"
$osType
"
!=
"Darwin"
]
;
then
script_dir
=
$(
dirname
$(
readlink
-f
"
$0
"
))
...
...
@@ -85,9 +86,12 @@ function install_main_path() {
${
csudo
}
mkdir
-p
${
install_main_dir
}
/bin
${
csudo
}
mkdir
-p
${
install_main_dir
}
/driver
if
[
$productName
==
"TDengine"
]
;
then
# ${csudo}mkdir -p ${install_main_dir}/connector
${
csudo
}
mkdir
-p
${
install_main_dir
}
/examples
${
csudo
}
mkdir
-p
${
install_main_dir
}
/include
fi
${
csudo
}
mkdir
-p
${
install_main_dir
}
/include
if
[
"
$verMode
"
==
"cluster"
]
;
then
${
csudo
}
mkdir
-p
${
install_main_dir
}
/connector
fi
}
function
install_bin
()
{
...
...
@@ -258,8 +262,8 @@ function update_TDengine() {
install_header
install_lib
install_jemalloc
if
[
"
$
pagMode
"
!=
"lite
"
]
;
then
install_connector
if
[
"
$
verMode
"
==
"cluster
"
]
;
then
install_connector
fi
install_examples
install_bin
...
...
@@ -272,31 +276,31 @@ function update_TDengine() {
}
function
install_TDengine
()
{
# Start to install
if
[
!
-e
${
tarName
}
]
;
then
echo
"File
${
tarName
}
does not exist"
exit
1
fi
tar
-zxf
${
tarName
}
# Start to install
if
[
!
-e
${
tarName
}
]
;
then
echo
"File
${
tarName
}
does not exist"
exit
1
fi
tar
-zxf
${
tarName
}
echo
-e
"
${
GREEN
}
Start to install
${
productName
}
client...
${
NC
}
"
echo
-e
"
${
GREEN
}
Start to install
${
productName
}
client...
${
NC
}
"
install_main_path
install_log
install_header
install_lib
install_jemalloc
if
[
"
$pagMode
"
!=
"lite
"
]
;
then
install_connector
fi
install_examples
install_bin
install_config
install_main_path
install_log
install_header
install_lib
install_jemalloc
if
[
"
$verMode
"
==
"cluster
"
]
;
then
install_connector
fi
install_examples
install_bin
install_config
echo
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is installed successfully!
${
NC
}
"
echo
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is installed successfully!
${
NC
}
"
rm
-rf
$(
tar
-tf
${
tarName
}
)
rm
-rf
$(
tar
-tf
${
tarName
}
)
}
...
...
packaging/tools/makeclient.sh
浏览文件 @
865b34ef
...
...
@@ -127,6 +127,12 @@ if [ "$osType" == "Darwin" ]; then
sed
's/osType=Linux/osType=Darwin/g'
${
install_dir
}
/install_client.sh
>>
install_client_temp.sh
mv
install_client_temp.sh
${
install_dir
}
/install_client.sh
fi
if
[
"
$verMode
"
==
"cluster"
]
;
then
sed
's/verMode=edge/verMode=cluster/g'
${
install_dir
}
/install_client.sh
>>
install_client_temp.sh
mv
install_client_temp.sh
${
install_dir
}
/install_client.sh
fi
if
[
"
$pagMode
"
==
"lite"
]
;
then
sed
's/pagMode=full/pagMode=lite/g'
${
install_dir
}
/install_client.sh
>>
install_client_temp.sh
mv
install_client_temp.sh
${
install_dir
}
/install_client.sh
...
...
@@ -149,21 +155,32 @@ if [[ $productName == "TDengine" ]]; then
mkdir
-p
${
install_dir
}
/examples/taosbenchmark-json
&&
cp
${
examples_dir
}
/../src/kit/taos-tools/example/
*
${
install_dir
}
/examples/taosbenchmark-json
fi
# # Copy connector
# connector_dir="${code_dir}/connector"
# mkdir -p ${install_dir}/connector
# if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
# if [ "$osType" != "Darwin" ]; then
# cp ${build_dir}/lib/*.jar ${install_dir}/connector || :
# fi
# if find ${connector_dir}/go -mindepth 1 -maxdepth 1 | read; then
# cp -r ${connector_dir}/go ${install_dir}/connector
# else
# echo "WARNING: go connector not found, please check if want to use it!"
# fi
# cp -r ${connector_dir}/python ${install_dir}/connector
# cp -r ${connector_dir}/nodejs ${install_dir}/connector
# fi
if
[
"
$verMode
"
==
"cluster"
]
;
then
# Copy connector
connector_dir
=
"
${
code_dir
}
/connector"
mkdir
-p
${
install_dir
}
/connector
if
[[
"
$pagMode
"
!=
"lite"
]]
&&
[[
"
$cpuType
"
!=
"aarch32"
]]
;
then
if
[
"
$osType
"
!=
"Darwin"
]
;
then
cp
${
build_dir
}
/lib/
*
.jar
${
install_dir
}
/connector
||
:
fi
if
find
${
connector_dir
}
/go
-mindepth
1
-maxdepth
1 |
read
;
then
cp
-r
${
connector_dir
}
/go
${
install_dir
}
/connector
else
echo
"WARNING: go connector not found, please check if want to use it!"
fi
git clone
--depth
1 https://github.com/taosdata/taos-connector-python
${
install_dir
}
/connector/python
rm
-rf
${
install_dir
}
/connector/python/.git
||
:
# cp -r ${connector_dir}/python ${install_dir}/connector
git clone
--depth
1 https://github.com/taosdata/taos-connector-node
${
install_dir
}
/connector/nodejs
rm
-rf
${
install_dir
}
/connector/nodejs/.git
||
:
git clone
--depth
1 https://github.com/taosdata/taos-connector-dotnet
${
install_dir
}
/connector/dotnet
rm
-rf
${
install_dir
}
/connector/dotnet/.git
||
:
# cp -r ${connector_dir}/nodejs ${install_dir}/connector
git clone
--depth
1 https://github.com/taosdata/libtaos-rs
${
install_dir
}
/connector/rust
rm
-rf
${
install_dir
}
/connector/rust/.git
||
:
fi
fi
fi
# Copy driver
mkdir
-p
${
install_dir
}
/driver
...
...
packaging/tools/makepkg.sh
浏览文件 @
865b34ef
...
...
@@ -296,20 +296,34 @@ fi
mkdir
-p
${
install_dir
}
/driver
&&
cp
${
lib_files
}
${
install_dir
}
/driver
&&
echo
"
${
versionComp
}
"
>
${
install_dir
}
/driver/vercomp.txt
# Copy connector
#connector_dir="${code_dir}/connector"
#mkdir -p ${install_dir}/connector
#if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
# cp ${build_dir}/lib/*.jar ${install_dir}/connector || :
# if find ${connector_dir}/go -mindepth 1 -maxdepth 1 | read; then
# cp -r ${connector_dir}/go ${install_dir}/connector
# else
# echo "WARNING: go connector not found, please check if want to use it!"
# fi
# cp -r ${connector_dir}/python ${install_dir}/connector
# cp -r ${connector_dir}/nodejs ${install_dir}/connector
#fi
if
[
"
$verMode
"
==
"cluster"
]
;
then
connector_dir
=
"
${
code_dir
}
/connector"
mkdir
-p
${
install_dir
}
/connector
if
[[
"
$pagMode
"
!=
"lite"
]]
&&
[[
"
$cpuType
"
!=
"aarch32"
]]
;
then
cp
${
build_dir
}
/lib/
*
.jar
${
install_dir
}
/connector
||
:
if
find
${
connector_dir
}
/go
-mindepth
1
-maxdepth
1 |
read
;
then
cp
-r
${
connector_dir
}
/go
${
install_dir
}
/connector
else
echo
"WARNING: go connector not found, please check if want to use it!"
fi
git clone
--depth
1 https://github.com/taosdata/taos-connector-python
${
install_dir
}
/connector/python
rm
-rf
${
install_dir
}
/connector/python/.git
||
:
git clone
--depth
1 https://github.com/taosdata/taos-connector-node
${
install_dir
}
/connector/nodejs
rm
-rf
${
install_dir
}
/connector/nodejs/.git
||
:
git clone
--depth
1 https://github.com/taosdata/taos-connector-dotnet
${
install_dir
}
/connector/dotnet
rm
-rf
${
install_dir
}
/connector/dotnet/.git
||
:
git clone
--depth
1 https://github.com/taosdata/libtaos-rs
${
install_dir
}
/connector/rust
rm
-rf
${
install_dir
}
/connector/rust/.git
||
:
# cp -r ${connector_dir}/python ${install_dir}/connector
# cp -r ${connector_dir}/nodejs ${install_dir}/connector
fi
fi
# Copy release note
#
cp ${script_dir}/release_note ${install_dir}
cp
${
script_dir
}
/release_note
${
install_dir
}
# exit 1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录