seninel部署
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. mvn clean
  3. mvn package -Dmaven.test.skip=true
  4. image_version=$version
  5. # 删除镜像
  6. docker rmi -f $(
  7. docker images | grep registry.cn-shanghai.aliyuncs.com/telpo_platform/sentinel_dashboard | awk '{print $3}'
  8. )
  9. # 构建telpo/mrp:$image_version镜像
  10. docker build . -t telpo/sentinel_dashboard:$image_version
  11. #TODO:推送镜像到阿里仓库
  12. echo '=================开始推送镜像======================='
  13. #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com
  14. docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com
  15. docker tag telpo/sentinel_dashboard:$image_version registry.cn-shanghai.aliyuncs.com/telpo_platform/sentinel_dashboard:$image_version
  16. docker push registry.cn-shanghai.aliyuncs.com/telpo_platform/sentinel_dashboard:$image_version
  17. echo '=================推送镜像完成======================='
  18. #删除产生的None镜像
  19. docker rmi -f $(docker images | grep none | awk '{print $3}')
  20. # 查看镜像列表
  21. docker images