Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
deploy-project-archive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f6b3b04e
authored
Jan 29, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
1 parent
e7d6c6f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
0 deletions
start.sh
test.sh
start.sh
0 → 100755
View file @
f6b3b04
#!/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
}
test.sh
0 → 100755
View file @
f6b3b04
#!/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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment