Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
ksyun_image_update
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 fb968fdf
authored
Sep 15, 2020
by
wangtingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
211a8f68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
58 deletions
ksyun_build_img.sh
updata_jsyun_images.sh → ksyun_img_build.sh
ksyun_build_img.sh
deleted
100755 → 0
View file @
211a8f6
#!/bin/bash
###################################变量相关######################################
now
=
$(
date +%Y%m%d%H%M%S
)
workspace
=
/kpl_build_docking/ksyun_image_update
###################################################
autodl_core_branch
=
develop
seetaas_frontend_branch
=
master
seetaas_backend_branch
=
master
kpl_stream_branch
=
master
#####################################
echo
"删除image.list列表"
sleep 2
rm -rf
$workspace
/image.list
echo
"删除seetaas项目目录"
sleep 2
rm -rf
$workspace
/seetaas
mkdir
$workspace
/seetaas/src -pv
cd
$workspace
/seetaas/src/
#################autodl-core################################################################
git clone git@gitlab.seetatech.com:autodl.com/autodl-core.git
&&
cd
autodl-core
&&
git checkout
$autodl_core_branch
&&
make build
mode
=
dev
||
make build
mode
=
dev
&&
\
docker build -f Dockerfile -t 10.12.4.15:5000/core/adl-core-v1:
$now
.
&&
\
docker push 10.12.4.15:5000/core/adl-core-v1:
$now
&&
\
echo
"10.12.4.15:5000/core/adl-core-v1:
$now
"
>>
$workspace
/image.list
docker build -f cmd/nginx/Dockerfile -t 10.12.4.15:5000/core/core--nginx:
$now
cmd/nginx/
&&
\
docker push 10.12.4.15:5000/core/core--nginx:
$now
&&
\
echo
10.12.4.15:5000/core/core--nginx:
$now
>>
$workspace
/image.list
&&
\
docker build -f cmd/collector/Dockerfile -t 10.12.4.15:5000/core/core--collector:
$now
.
&&
\
docker push 10.12.4.15:5000/core/core--collector:
$now
&&
\
echo
"10.12.4.15:5000/core/core--collector:
$now
"
>>
$workspace
/image.list
\
################seetaash后端#####################################################################
cd
$workspace
/seetaas/src/
git clone git@gitlab.seetatech.com:seetaas.com/seetaas-backend.git
&&
cd
seetaas-backend
&&
git checkout
$seetaas_backend_branch
&&
make build
mode
=
dev
||
make build
mode
=
dev
&&
\
docker build -f Dockerfile -t 10.12.4.15:5000/seetaas/kpl-backend-v1:
$now
.
&&
\
docker push 10.12.4.15:5000/seetaas/kpl-backend-v1:
$now
&&
\
echo
"10.12.4.15:5000/seetaas/kpl-backend-v1:
$now
"
>>
$workspace
/image.list
&&
\
docker build -f image_dockerfile/Dockerfile -t 10.12.4.15:5000/seetaas/image-proxy-v1:
$now
.
&&
\
docker push 10.12.4.15:5000/seetaas/image-proxy-v1:
$now
&&
\
echo
"10.12.4.15:5000/seetaas/image-proxy-v1:
$now
"
>>
$workspace
/image.list
&&
\
echo
"+++++++++++++开始build kpl--nginx+++++++++++++++++++++++"
docker build -f cmd/nginx/Dockerfile -t 10.12.4.15:5000/seetaas/kpl--nginx:
$now
cmd/nginx/
&&
\
echo
"+++++++++开始推送镜像+++++++++++++"
docker push 10.12.4.15:5000/seetaas/kpl--nginx:
$now
&&
\
echo
"10.12.4.15:5000/seetaas/kpl--nginx:
$now
"
>>
$workspace
/image.list
&&
\
docker build -f cmd/manager/Dockerfile -t 10.12.4.15:5000/seetaas/kpl-manager-v1:
$now
.
&&
\
docker push 10.12.4.15:5000/seetaas/kpl-manager-v1:
$now
&&
\
echo
"10.12.4.15:5000/seetaas/kpl-manager-v1:
$now
"
>>
$workspace
/image.list
\
#####################################seetaas前端###################################################
cd
$workspace
/seetaas/
git clone git@gitlab.seetatech.com:seetaas/seetaas-v3.git
&&
cd
seetaas-v3
&&
git checkout
$seetaas_frontend_branch
&&
make build
mode
=
dev
||
make build
mode
=
dev
&&
\
docker build -f Dockerfile -t 10.12.4.15:5000/seetaas/kpl--frontend:
$now
.
&&
\
docker push 10.12.4.15:5000/seetaas/kpl--frontend:
$now
&&
\
echo
"10.12.4.15:5000/seetaas/kpl--frontend:
$now
"
>>
$workspace
/image.list
\
#######################################kpl stream ssh服务######################################################
cd
$workspace
/seetaas/src/
git clone git@gitlab.seetatech.com:seetaas.com/kpl-stream.git
&&
cd
kpl-stream
&&
git checkout
$kpl_stream_branch
&&
make build
mode
=
dev
||
make build
mode
=
dev
&&
\
docker build -f Dockerfile -t 10.12.4.15:5000/seetaas/kpl-stream-v1:
$now
.
&&
\
docker push 10.12.4.15:5000/seetaas/kpl-stream-v1:
$now
&&
\
echo
"10.12.4.15:5000/seetaas/kpl-stream-v1:
$now
"
>>
$workspace
/image.list
updata_jsyun_images
.sh
→
ksyun_img_build
.sh
View file @
fb968fd
File moved
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