commitDev.sh 654 B

123456789101112131415161718192021222324252627282930313233343536
  1. ###
  2. # @Description:
  3. # @Version: 1.0
  4. # @Autor: lishengyin
  5. # @Date: 2022-02-22 10:55:34
  6. # @LastEditors: lishengyin
  7. # @LastEditTime: 2022-02-22 14:02:04
  8. ###
  9. #!/bin/bash
  10. version=`cat VERSION`
  11. if [ -z "$version" ]; then
  12. echo "版本号为空"
  13. exit
  14. fi
  15. docker stop mivaDev mivadbDev
  16. # 提交开发环境
  17. docker commit mivaDev mivainfer:$version
  18. docker commit mivadbDev mivadb:$version
  19. # 清除原先的实例
  20. docker rm mivaDev mivadbDev
  21. docker rmi mivainfer:dev
  22. docker rmi mivadb:dev
  23. docker tag mivainfer:$version mivainfer:dev
  24. docker tag mivadb:$version mivadb:dev
  25. docker rmi mivainfer:$version
  26. docker rmi mivadb:$version
  27. ./build.sh