天波用户运营管理后台系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup_development.sh 964B

123456789101112131415161718192021222324252627282930
  1. ###
  2. # @Author: JinxuChen
  3. # @Date: 2021-11-15
  4. # @LastEditTime: 2022-09-08 14:19:26
  5. # @LastEditors: JinxChen
  6. # @Description: In User Settings Edit
  7. # @FilePath: \TelpoUserManageAdmin\setup_development.sh
  8. ###
  9. #!/bin/bash
  10. npm -v
  11. npm config set registry https://registry.npm.taobao.org
  12. npm config list
  13. npm install
  14. npm run build-test
  15. image_version=`date +%Y%m%d%H%M`;
  16. docker stop telpo_user_admin || true;
  17. # 删除gps_parent_web容器
  18. docker rm telpo_user_admin || true;
  19. # 删除镜像
  20. docker rmi -f $(docker images | grep telpo/telpo_user_admin | awk '{print $3}')
  21. # 构建telpo/telpo_user_admin:$image_version镜像
  22. docker build . -t telpo/telpo_user_admin:$image_version;
  23. #删除产生的None镜像
  24. docker rmi -f $(docker images | grep none | awk '{print $3}')
  25. # 查看镜像列表
  26. docker images;
  27. # 启动容器
  28. docker run -p 8073:80 -d --restart=always --name telpo_user_admin telpo/telpo_user_admin:$image_version;
  29. # 查看日志
  30. docker logs telpo_user_admin;