Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
3a784d84
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看板
未验证
提交
3a784d84
编写于
4月 28, 2022
作者:
M
Minglei Jin
提交者:
GitHub
4月 28, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #11973 from taosdata/hmoem
build: release scripts modify
上级
98846d56
62927b93
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
65 addition
and
68 deletion
+65
-68
cmake/version.inc
cmake/version.inc
+1
-1
packaging/clean_env.sh
packaging/clean_env.sh
+3
-18
packaging/tools/install.sh
packaging/tools/install.sh
+8
-5
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+45
-39
packaging/tools/remove.sh
packaging/tools/remove.sh
+7
-4
snap/snapcraft.yaml
snap/snapcraft.yaml
+1
-1
未找到文件。
cmake/version.inc
浏览文件 @
3a784d84
...
...
@@ -4,7 +4,7 @@ PROJECT(TDengine)
IF
(
DEFINED
VERNUMBER
)
SET
(
TD_VER_NUMBER
$
{
VERNUMBER
})
ELSE
()
SET
(
TD_VER_NUMBER
"2.4.0.1
4
"
)
SET
(
TD_VER_NUMBER
"2.4.0.1
6
"
)
ENDIF
()
IF
(
DEFINED
VERCOMPATIBLE
)
...
...
packaging/clean_env.sh
浏览文件 @
3a784d84
...
...
@@ -26,24 +26,9 @@ fi
cd
$TOOLS_DIR
git checkout
--
.
if
[[
-e
packaging/tools/install-khtools.sh
]]
;
then
rm
-f
packaging/tools/install-khtools.sh
fi
if
[[
-e
packaging/tools/uninstall-khtools.sh
]]
;
then
rm
-f
packaging/tools/uninstall-khtools.sh
fi
if
[[
-e
packaging/tools/install-prodbtools.sh
]]
;
then
rm
-f
packaging/tools/install-prodbtools.sh
fi
if
[[
-e
packaging/tools/uninstall-prodbtools.sh
]]
;
then
rm
-f
packaging/tools/uninstall-prodbtools.sh
fi
if
[[
-e
packaging/tools/install-powertools.sh
]]
;
then
rm
-f
packaging/tools/install-powertools.sh
fi
if
[[
-e
packaging/tools/uninstall-powertools.sh
]]
;
then
rm
-f
packaging/tools/uninstall-powertools.sh
fi
rm
-f
$(
find packaging/tools/
-name
install-
*
tools.sh |
grep
-v
taos
)
rm
-f
$(
find packaging/tools/
-name
uninstall-
*
tools.sh |
grep
-v
taos
)
rm
-rf
$COMMUNITY_DIR
/debug/
*
rm
-rf
$COMMUNITY_DIR
/release/
*
...
...
packaging/tools/install.sh
浏览文件 @
3a784d84
...
...
@@ -29,6 +29,9 @@ logDir="/var/log/taos"
configDir
=
"/etc/taos"
installDir
=
"/usr/local/taos"
adapterName
=
"taosadapter"
benchmarkName
=
"taosBenchmark"
dumpName
=
"taosdump"
demoName
=
"taosdemo"
data_dir
=
${
dataDir
}
log_dir
=
${
logDir
}
...
...
@@ -202,9 +205,9 @@ function install_bin() {
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
serverName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
serverName
}
${
bin_link_dir
}
/
${
serverName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
adapterName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
adapterName
}
${
bin_link_dir
}
/
${
adapterName
}
||
:
[
-x
${
install_main_dir
}
/bin/
taosBenchmark
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosBenchmark
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
install_main_dir
}
/bin/
taosBenchmark
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosBenchmark
${
bin_link_dir
}
/taosBenchmark
||
:
[
-x
${
install_main_dir
}
/bin/
taosdump
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdump
${
bin_link_dir
}
/taosdump
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
demoName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
dumpName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
dumpName
}
${
bin_link_dir
}
/
${
dumpName
}
||
:
[
-x
${
install_main_dir
}
/bin/TDinsight.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/TDinsight.sh
${
bin_link_dir
}
/TDinsight.sh
||
:
[
-x
${
install_main_dir
}
/bin/remove.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove.sh
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
[
-x
${
install_main_dir
}
/bin/set_core.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/set_core.sh
${
bin_link_dir
}
/set_core
||
:
...
...
@@ -864,7 +867,7 @@ function updateProduct() {
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is updated successfully!
${
NC
}
"
fi
rm
-rf
$(
tar
-tf
${
tarName
}
|grep
-v
"^
\.
/$"
)
rm
-rf
$(
tar
-tf
${
tarName
}
|
grep
-v
"^
\.
/$"
)
}
function
installProduct
()
{
...
...
@@ -960,7 +963,7 @@ function installProduct() {
fi
touch
~/.
${
historyFile
}
rm
-rf
$(
tar
-tf
${
tarName
}
|grep
-v
"^
\.
/$"
)
rm
-rf
$(
tar
-tf
${
tarName
}
|
grep
-v
"^
\.
/$"
)
}
## ==============================Main program starts from here============================
...
...
packaging/tools/makepkg.sh
浏览文件 @
3a784d84
...
...
@@ -64,9 +64,11 @@ if [ "$pagMode" == "lite" ]; then
taostools_bin_files
=
""
else
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
build_dir
}
/bin/TDinsight.sh
\
&&
echo
"TDinsight.sh downloaded!"
\
||
echo
"failed to download TDinsight.sh"
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
build_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
# download TDinsight caches
orig_pwd
=
$(
pwd
)
tdinsight_caches
=
""
...
...
@@ -81,6 +83,7 @@ else
${
build_dir
}
/bin/TDinsight.sh
\
$tdinsight_caches
"
#!!! do not change taosadapter here
bin_files
=
"
${
build_dir
}
/bin/
${
serverName
}
\
${
build_dir
}
/bin/
${
clientName
}
\
${
taostools_bin_files
}
\
...
...
@@ -115,10 +118,11 @@ mkdir -p ${install_dir}
mkdir
-p
${
install_dir
}
/inc
&&
cp
${
header_files
}
${
install_dir
}
/inc
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/
${
configFile
}
${
install_dir
}
/cfg/
${
configFile
}
# !!! do not change the taosadapter here!!!
if
[
-f
"
${
compile_dir
}
/test/cfg/taosadapter.toml"
]
;
then
cp
${
compile_dir
}
/test/cfg/taosadapter.toml
${
install_dir
}
/cfg
||
:
fi
# !!! do not change the taosadapter here!!!
if
[
-f
"
${
compile_dir
}
/test/cfg/taosadapter.service"
]
;
then
cp
${
compile_dir
}
/test/cfg/taosadapter.service
${
install_dir
}
/cfg
||
:
fi
...
...
@@ -141,50 +145,52 @@ mkdir -p ${install_dir}/init.d && cp ${init_file_rpm} ${install_dir}/init.d/${se
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_deb
}
${
install_dir
}
/init.d/tarbitratord.deb
||
:
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_rpm
}
${
install_dir
}
/init.d/tarbitratord.rpm
||
:
# !!! do not change taosadaptor here
if
[
$adapterName
!=
"taosadapter"
]
;
then
# !!! do not change taosadaptor here
mv
${
install_dir
}
/cfg/taosadapter.toml
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/path =
\"\/
var
\/
log
\/
taos
\"
/path =
\"\/
var
\/
log
\/
${
productName
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/password =
\"
taosdata
\"
/password =
\"
${
defaultPasswd
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
# !!! do not change taosadaptor here
mv
${
install_dir
}
/cfg/taosadapter.service
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/TDengine/
${
productName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosAdapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosadapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
# !!! do not change taosadaptor here
mv
${
install_dir
}
/bin/taosadapter
${
install_dir
}
/bin/
${
adapterName
}
mv
${
install_dir
}
/bin/run_taosd_and_taosadapter.sh
${
install_dir
}
/bin/run_
${
serverName
}
_and_
${
adapterName
}
.sh
mv
${
install_dir
}
/bin/taosd-dump-cfg.gdb
${
install_dir
}
/bin/
${
serverName
}
-dump-cfg
.gdb
fi
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
mkdir
-p
${
taostools_install_dir
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
"
mkdir
-p
${
taostools_install_dir
}
/bin
\
&&
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
\
&&
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
&&
chmod
a+x
${
taostools_install_dir
}
/install-
${
toolsName
}
.sh
\
||
echo
-e
"failed to copy install-
${
toolsName
}
.sh"
else
echo
-e
"install-
${
toolsName
}
.sh not found"
fi
mkdir
-p
${
taostools_install_dir
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
"
mkdir
-p
${
taostools_install_dir
}
/bin
&&
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
&&
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
&&
chmod
a+x
${
taostools_install_dir
}
/install-
${
toolsName
}
.sh
||
echo
-e
"failed to copy install-
${
toolsName
}
.sh"
else
echo
-e
"install-
${
toolsName
}
.sh not found"
fi
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
&&
chmod
a+x
${
taostools_install_dir
}
/uninstall-
${
toolsName
}
.sh
\
||
echo
-e
"failed to copy uninstall-
${
toolsName
}
.sh"
else
echo
-e
"uninstall-
${
toolsName
}
.sh not found"
fi
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
&&
chmod
a+x
${
taostools_install_dir
}
/uninstall-
${
toolsName
}
.sh
||
echo
-e
"failed to copy uninstall-
${
toolsName
}
.sh"
else
echo
-e
"uninstall-
${
toolsName
}
.sh not found"
fi
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
mkdir
-p
${
taostools_install_dir
}
/avro/
{
lib,lib/pkgconfig
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
/avro"
cp
${
build_dir
}
/lib/libavro.
*
${
taostools_install_dir
}
/avro/lib
cp
${
build_dir
}
/lib/pkgconfig/avro-c.pc
${
taostools_install_dir
}
/avro/lib/pkgconfig
fi
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
mkdir
-p
${
taostools_install_dir
}
/avro/
{
lib,lib/pkgconfig
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
/avro"
cp
${
build_dir
}
/lib/libavro.
*
${
taostools_install_dir
}
/avro/lib
cp
${
build_dir
}
/lib/pkgconfig/avro-c.pc
${
taostools_install_dir
}
/avro/lib/pkgconfig
fi
fi
if
[
-f
${
build_dir
}
/bin/jemalloc-config
]
;
then
...
...
@@ -366,13 +372,13 @@ if [ "$exitcode" != "0" ]; then
fi
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
taostools_install_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
--remove-files
||
:
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
exit
$exitcode
fi
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
taostools_install_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
--remove-files
||
:
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
exit
$exitcode
fi
fi
cd
${
curr_dir
}
packaging/tools/remove.sh
浏览文件 @
3a784d84
...
...
@@ -17,6 +17,9 @@ clientName="taos"
uninstallScript
=
"rmtaos"
productName
=
"TDengine"
adapterName
=
"taosadapter"
benchmarkName
=
"taosBenchmark"
dumpName
=
"taosdump"
demoName
=
"taosdemo"
#install main path
install_main_dir
=
${
installDir
}
...
...
@@ -71,9 +74,9 @@ function clean_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
serverName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
adapterName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosBenchmark
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
demoName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
dumpName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
...
...
@@ -146,7 +149,7 @@ function clean_service_on_systemd() {
function
clean_service_on_sysvinit
()
{
if
pidof
${
serverName
}
&>/dev/null
;
then
echo
"
${
productName
}
${
serverName
}
is running, stopping it..."
${
csudo
}
service
taosd
stop
||
:
${
csudo
}
service
${
serverName
}
stop
||
:
fi
if
pidof tarbitrator &>/dev/null
;
then
...
...
snap/snapcraft.yaml
浏览文件 @
3a784d84
name
:
tdengine
base
:
core20
version
:
'
2.4.0.1
4
'
version
:
'
2.4.0.1
6
'
icon
:
snap/gui/t-dengine.svg
summary
:
an open-source big data platform designed and optimized for IoT.
description
:
|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录