Commit f6b3b04e by tingweiwang

add

1 parent e7d6c6f6
Showing with 90 additions and 0 deletions
#!/bin/bash
#wangtingwei
base_package_workspace=/data/package/ #打包工作的项目目录
seetaas_workspace=$base_workspace/seetaas #打包工作目录中的子目录seetaas项目
archive_package_workspace=/data/archive #打包后压缩归档路径
date=date+%F-%M-%D-%S
go_proxy_server=http://goproxy.seetatech.com
autodl_core_branch=master
kpl_frontend_branch=master
kpl_backend_branch=master
kpl_stream_branch=master
kpl_launcher_branch=master
sed_proxy()
{
find $workspace/$date -maxdepth 3 -type f -name Makefile |xargs sed -i s@go_proxy_server@$go_proxy_server@g
}
kpl_frontend(){
echo "清空旧的工作空间"
rm -rf $base_package_workspace
echo "拉取kpl前端的$kpl_frontend_branch 分支k,并且编译"
git clone -b $kpl_frontend_branch git@gitlab.seetatech.com:seetaas/seetaas-v3.git $workspace/$date/seetaas-v3 && cd $workspace/$date/seetaas-v3/ && export GOPATH=$workspace/$date &&sed_proxy && make build mode=dev
}
echo "为后端创建src目录"
test -d $seetaas_workspace/src || mkdir $seetaas_workspace/src/ -pv
echo "拉取master 分支 seetaas-v3前端代码,并且编译"
git clone -b master git@gitlab.seetatech.com:seetaas/seetaas-v3.git $workspace/$date/seetaas-v3 && cd $workspace/$date/seetaas-v3/ && export GOPATH=$workspace/$date &&sed_proxy && make build mode=dev
echo "拉取 autodl-core代码,并且编译"
git clone -b master git@gitlab.seetatech.com:autodl.com/autodl-core.git $workspace/$date/src/autodl-core && cd $workspace/$date/src/autodl-core/ && export GOPATH=$workspace/$date && sed_proxy && make build mode=dev ||echo "重新尝试" && make build mode=dev
echo "拉取master 分支 seetaas-backend代码,并且编译"
git clone -b master git@gitlab.seetatech.com:seetaas.com/seetaas-backend.git $workspace/$date/src/seetaas-backend && cd $workspace/$date/src/seetaas-backend/ && export GOPATH=$workspace/$date && sed_proxy && make build mode=dev || echo "重新尝试" && rm -rf $workspace/$date/pkg && make build mode=dev
echo "拉取master 分支 kpl-stream代码,并且编译"
git clone -b master git@gitlab.seetatech.com:seetaas.com/kpl-stream.git $workspace/$date/src/kpl-stream && cd $workspace/$date/src/kpl-stream/ && export GOPATH=$workspace/$date && sed_proxy && make build mode=dev || echo "重新尝试" && rm -rf $workspace/$date/pkg && make build mode=dev
echo "拉取master 分支 kpl-launcher代码,并且编译"
git clone -b master git@gitlab.seetatech.com:tingweiwang/kpl-launcher.git $workspace/$date/src/kpl-launcher
private_img(){
wget https://2019-10-1.oss-cn-huhehaote.aliyuncs.com/private_images/images.tar.gz
}
configmap_kpl(){
git clone git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git
}
seetaas_deploy(){
git clone git@gitlab.seetatech.com:tingweiwang/seetaas-deploy.git
}
#!/bin/bash
#wangtingwei
base_package_workspace=/data/package/ #打包工作的项目目录
seetaas_workspace=$base_workspace/seetaas #打包工作目录中的子目录seetaas项目
archive_package_workspace=/data/archive #打包后压缩归档路径
date=date+%F-%M-%D-%S
go_proxy_server=http://goproxy.seetatech.com
$1=autodl_core_branch
$2=kpl_frontend_branch
$3=kpl_backend_branch
$4=kpl_stream_branch
$5=kpl_launcher_branch
echo $1
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!