copy.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. # 复制项目的文件到对应docker路径,便于一键生成镜像。
  3. usage() {
  4. echo "Usage: sh copy.sh"
  5. exit 1
  6. }
  7. # copy jar
  8. echo "begin copy ruoyi-gateway "
  9. cp ../ruoyi-gateway/target/ruoyi-gateway.jar ./ruoyi/gateway/jar
  10. echo "begin copy ruoyi-auth "
  11. cp ../ruoyi-auth/target/ruoyi-auth.jar ./ruoyi/auth/jar
  12. echo "begin copy ruoyi-visual "
  13. cp ../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar ./ruoyi/visual/monitor/jar
  14. echo "begin copy ruoyi-modules-system "
  15. cp ../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar ./ruoyi/modules/system/jar
  16. echo "begin copy ruoyi-modules-file "
  17. cp ../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar ./ruoyi/modules/file/jar
  18. echo "begin copy ruoyi-modules-job "
  19. cp ../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar ./ruoyi/modules/job/jar
  20. echo "begin copy ruoyi-modules-gen "
  21. cp ../ruoyi-modules/ruoyi-gen/target/ruoyi-modules-gen.jar ./ruoyi/modules/gen/jar
  22. echo "begin copy train-education "
  23. cp ../ruoyi-modules/train-education/target/train-education.jar ./ruoyi/modules/education/jar
  24. echo "begin copy train-resource "
  25. cp ../ruoyi-modules/train-resource/target/train-resource.jar ./ruoyi/modules/resource/jar