Commit 33911060 by tingweiwang

增加kpl-iot

1 parent 5d2a1def
Showing with 20 additions and 0 deletions
...@@ -21,6 +21,15 @@ kpl_backend_branch=$7 ...@@ -21,6 +21,15 @@ kpl_backend_branch=$7
kpl_stream_branch=$8 kpl_stream_branch=$8
kpl_launcher_branch=$9 kpl_launcher_branch=$9
kpl_version=${10} kpl_version=${10}
kpl_iot=${11}
#go_operator_name=${12}
#python_operator_name=${13}
sed_proxy() sed_proxy()
{ {
find $seetaas_workspace -maxdepth 3 -type f -name Makefile |xargs sed -i s@go_proxy_server@$go_proxy_server@g find $seetaas_workspace -maxdepth 3 -type f -name Makefile |xargs sed -i s@go_proxy_server@$go_proxy_server@g
...@@ -58,6 +67,12 @@ echo "拉取master 分支 kpl-launcher代码,并且编译" ...@@ -58,6 +67,12 @@ echo "拉取master 分支 kpl-launcher代码,并且编译"
git clone -b $kpl_launcher_branch git@gitlab.seetatech.com:tingweiwang/kpl-launcher.git $seetaas_workspace/src/kpl-launcher git clone -b $kpl_launcher_branch git@gitlab.seetatech.com:tingweiwang/kpl-launcher.git $seetaas_workspace/src/kpl-launcher
} }
kpl_iot(){
echo "拉取master 分支 kpl-iot代码,并且编译"
git clone -b $kpl_iot git@gitlab.seetatech.com:seetaas.com/kpl-iot.git $seetaas_workspace/src/kpl-iot && cd $seetaas_workspace/src/kpl-iot/ && export GOPATH=$seetaas_workspace && sed_proxy && make build mode=dev || echo "重新尝试" && rm -rf $seetaas_workspace/pkg && make build mode=dev
}
private_img(){ private_img(){
wget https://2019-10-1.oss-cn-huhehaote.aliyuncs.com/private_images/images.tar.gz -P $base_package_workspace wget https://2019-10-1.oss-cn-huhehaote.aliyuncs.com/private_images/images.tar.gz -P $base_package_workspace
} }
...@@ -79,12 +94,16 @@ kpl_frontend ...@@ -79,12 +94,16 @@ kpl_frontend
kpl_backend kpl_backend
kpl_stream kpl_stream
kpl_launcher kpl_launcher
kpl_iot
} }
echo $kpl_version && sleep 4 echo $kpl_version && sleep 4
################################### ###################################
echo "+++++++++++++++删除旧的seetaas项目+++++++++++++++++++++++"
rm -rf $base_package_workspace/seetaas
echo "开始执行seetaas代码打包" echo "开始执行seetaas代码打包"
build_seetaas build_seetaas
echo "++++++++++++++删除 $base_package_workspace/seetaas-deploy+++++++++++" echo "++++++++++++++删除 $base_package_workspace/seetaas-deploy+++++++++++"
rm -rf $base_package_workspace/seetaas-deploy rm -rf $base_package_workspace/seetaas-deploy
echo "判断是否收集seetaas-deploy脚本" echo "判断是否收集seetaas-deploy脚本"
...@@ -94,6 +113,7 @@ else ...@@ -94,6 +113,7 @@ else
echo "跳过seetaas-deploy任务" echo "跳过seetaas-deploy任务"
fi fi
echo "++++++++++++++删除 $base_package_workspace/configmap-kpl +++++++++++" echo "++++++++++++++删除 $base_package_workspace/configmap-kpl +++++++++++"
rm -rf $base_package_workspace/configmap-kpl rm -rf $base_package_workspace/configmap-kpl
echo "判断是否收集configmap-kpl" echo "判断是否收集configmap-kpl"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!