Merge pull request #21423 from taosdata/main-yq
Remove taosx, connector, explorer and taoskeeper in cloud tdengine
This commit is contained in:
commit
5a1cacaa4a
|
@ -123,6 +123,16 @@ else
|
||||||
echo "Unknown cpuType: ${cpuType}"
|
echo "Unknown cpuType: ${cpuType}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
# check the tdengine cloud base image existed or not
|
||||||
|
if [ "$cloudBuild" == "y" ]; then
|
||||||
|
CloudBase=$(docker images | grep tdengine/tdengine-cloud-base ||:)
|
||||||
|
if [[ "$CloudBase" == "" ]]; then
|
||||||
|
echo "Rebuild tdengine cloud base image..."
|
||||||
|
docker build --rm -f "${communityDir}/packaging/docker/DockerfileCloud.base" -t tdengine/tdengine-cloud-base "." --build-arg cpuType=${cpuTypeAlias}
|
||||||
|
else
|
||||||
|
echo "Already found tdengine cloud base image"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
docker build --rm -f "${Dockerfile}" --network=host -t tdengine/tdengine-${dockername}:${version} "." --build-arg pkgFile=${pkgFile} --build-arg dirName=${dirName} --build-arg cpuType=${cpuTypeAlias}
|
docker build --rm -f "${Dockerfile}" --network=host -t tdengine/tdengine-${dockername}:${version} "." --build-arg pkgFile=${pkgFile} --build-arg dirName=${dirName} --build-arg cpuType=${cpuTypeAlias}
|
||||||
if [ "$cloudBuild" != "y" ]; then
|
if [ "$cloudBuild" != "y" ]; then
|
||||||
|
|
|
@ -175,7 +175,7 @@ if [ "$pagMode" == "lite" ]; then
|
||||||
fi
|
fi
|
||||||
chmod a+x ${install_dir}/install_client.sh
|
chmod a+x ${install_dir}/install_client.sh
|
||||||
|
|
||||||
if [[ $productName == "TDengine" ]]; then
|
if [[ $productName == "TDengine" ]] && [ "$verMode" != "cloud" ]; then
|
||||||
# Copy example code
|
# Copy example code
|
||||||
mkdir -p ${install_dir}/examples
|
mkdir -p ${install_dir}/examples
|
||||||
examples_dir="${top_dir}/examples"
|
examples_dir="${top_dir}/examples"
|
||||||
|
@ -191,7 +191,7 @@ if [[ $productName == "TDengine" ]]; then
|
||||||
mkdir -p ${install_dir}/examples/taosbenchmark-json && cp ${examples_dir}/../tools/taos-tools/example/* ${install_dir}/examples/taosbenchmark-json
|
mkdir -p ${install_dir}/examples/taosbenchmark-json && cp ${examples_dir}/../tools/taos-tools/example/* ${install_dir}/examples/taosbenchmark-json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$verMode" == "cluster" ] || [ "$verMode" == "cloud" ]; then
|
if [ "$verMode" == "cluster" ]; then
|
||||||
# Copy connector
|
# Copy connector
|
||||||
connector_dir="${code_dir}/connector"
|
connector_dir="${code_dir}/connector"
|
||||||
mkdir -p ${install_dir}/connector
|
mkdir -p ${install_dir}/connector
|
||||||
|
|
|
@ -69,25 +69,29 @@ if [ "$pagMode" == "lite" ]; then
|
||||||
bin_files="${build_dir}/bin/${serverName} ${build_dir}/bin/${clientName} ${script_dir}/remove.sh ${script_dir}/startPre.sh ${build_dir}/bin/taosBenchmark "
|
bin_files="${build_dir}/bin/${serverName} ${build_dir}/bin/${clientName} ${script_dir}/remove.sh ${script_dir}/startPre.sh ${build_dir}/bin/taosBenchmark "
|
||||||
taostools_bin_files=""
|
taostools_bin_files=""
|
||||||
else
|
else
|
||||||
|
if [ "$verMode" == "cloud" ]; then
|
||||||
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh -O ${build_dir}/bin/TDinsight.sh \
|
taostools_bin_files=" ${build_dir}/bin/taosBenchmark"
|
||||||
|
else
|
||||||
|
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh -O ${build_dir}/bin/TDinsight.sh \
|
||||||
&& echo "TDinsight.sh downloaded!" \
|
&& echo "TDinsight.sh downloaded!" \
|
||||||
|| echo "failed to download TDinsight.sh"
|
|| echo "failed to download TDinsight.sh"
|
||||||
# download TDinsight caches
|
# download TDinsight caches
|
||||||
orig_pwd=$(pwd)
|
orig_pwd=$(pwd)
|
||||||
tdinsight_caches=""
|
tdinsight_caches=""
|
||||||
cd ${build_dir}/bin/ && \
|
cd ${build_dir}/bin/ && \
|
||||||
chmod +x TDinsight.sh
|
chmod +x TDinsight.sh
|
||||||
./TDinsight.sh --download-only ||:
|
./TDinsight.sh --download-only ||:
|
||||||
# tdinsight_caches=$(./TDinsight.sh --download-only | xargs -I printf "${build_dir}/bin/{} ")
|
# tdinsight_caches=$(./TDinsight.sh --download-only | xargs -I printf "${build_dir}/bin/{} ")
|
||||||
cd $orig_pwd
|
cd $orig_pwd
|
||||||
echo "TDinsight caches: $tdinsight_caches"
|
echo "TDinsight caches: $tdinsight_caches"
|
||||||
|
|
||||||
taostools_bin_files=" ${build_dir}/bin/taosdump \
|
taostools_bin_files=" ${build_dir}/bin/taosdump \
|
||||||
${build_dir}/bin/taosBenchmark \
|
${build_dir}/bin/taosBenchmark \
|
||||||
${build_dir}/bin/TDinsight.sh \
|
${build_dir}/bin/TDinsight.sh \
|
||||||
${build_dir}/bin/tdengine-datasource.zip \
|
${build_dir}/bin/tdengine-datasource.zip \
|
||||||
${build_dir}/bin/tdengine-datasource.zip.md5sum"
|
${build_dir}/bin/tdengine-datasource.zip.md5sum"
|
||||||
|
fi
|
||||||
|
|
||||||
[ -f ${build_dir}/bin/taosx ] && taosx_bin="${build_dir}/bin/taosx"
|
[ -f ${build_dir}/bin/taosx ] && taosx_bin="${build_dir}/bin/taosx"
|
||||||
explorer_bin_files=$(find ${build_dir}/bin/ -name '*-explorer')
|
explorer_bin_files=$(find ${build_dir}/bin/ -name '*-explorer')
|
||||||
|
|
||||||
|
@ -334,7 +338,7 @@ mkdir -p ${install_dir}/driver && cp ${lib_files} ${install_dir}/driver && echo
|
||||||
[ -f ${wslib_files} ] && cp ${wslib_files} ${install_dir}/driver || :
|
[ -f ${wslib_files} ] && cp ${wslib_files} ${install_dir}/driver || :
|
||||||
|
|
||||||
# Copy connector
|
# Copy connector
|
||||||
if [ "$verMode" == "cluster" ] || [ "$verMode" == "cloud" ]; then
|
if [ "$verMode" == "cluster" ]; then
|
||||||
connector_dir="${code_dir}/connector"
|
connector_dir="${code_dir}/connector"
|
||||||
mkdir -p ${install_dir}/connector
|
mkdir -p ${install_dir}/connector
|
||||||
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
|
if [[ "$pagMode" != "lite" ]] && [[ "$cpuType" != "aarch32" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue