Commit 921ad090 by tingweiwang

hello

0 parents
Showing with 48 additions and 0 deletions
#!/bin/bash
now=$(date +%Y%m%d%H%M%S)
echo "删除image.list列表"
sleep 2
rm -rf image.list
echo "删除seetaas项目目录"
sleep 2
rm -rf seetaas
mkdir seetaas/src -pv
cd /home/wangtingwei/seetaas/src/
#################autodl-core################################################################
git clone git@gitlab.seetatech.com:autodl.com/autodl-core.git && cd autodl-core && git checkout develop && 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" >>/home/wangtingwei/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 >>/home/wangtingwei/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">>/home/wangtingwei/image.list \
################seetaash后端#####################################################################
cd /home/wangtingwei/seetaas/src/
git clone git@gitlab.seetatech.com:seetaas.com/seetaas-backend.git && cd seetaas-backend && git checkout master && 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" >>/home/wangtingwei/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" >>/home/wangtingwei/image.list && \
docker build -f cmd/nginx/Dockerfile -t 10.12.4.15:5000/seetaas/kpl--nginx:$now cmd/nginx/ && \
docker push 10.12.4.15:5000/seetaas/kpl--nginx:$now && \
echo "10.12.4.15:5000/seetaas/kpl--nginx:$now" >>/home/wangtingwei/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" >>/home/wangtingwei/image.list &&
#####################################seetaas前端###################################################
cd /home/wangtingwei/seetaas/
git clone git@gitlab.seetatech.com:seetaas/seetaas-v3.git && cd seetaas-v3 && git checkout master && 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" >>/home/wangtingwei/image.list
#######################################kpl stream ssh服务######################################################
cd /home/wangtingwei/seetaas/src/
git clone git@gitlab.seetatech.com:seetaas.com/kpl-stream.git && cd kpl-stream && git checkout master && 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" >>/home/wangtingwei/image.list
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!