copy.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/sh
  2. # 复制项目的文件到对应docker路径,便于一键生成镜像。
  3. usage() {
  4. echo "Usage: sh copy.sh"
  5. exit 1
  6. }
  7. echo "begin package "
  8. #打包开始
  9. cd ..
  10. mvn clean install -Dmaven.test.skip=true
  11. #前端
  12. cd ./vctgo-ui
  13. npm install --registry=https://registry.npmmirror.com
  14. npm run build:prod
  15. cd ../docker
  16. # copy sql
  17. echo "begin copy sql "
  18. cp ../sql/vctgo_platform.sql ./mysql/db
  19. cp ../sql/vctgo_config.sql ./mysql/db
  20. # copy html
  21. echo "begin copy html "
  22. cp -r ../vctgo-ui/dist/** ./nginx/html/dist
  23. # copy jar
  24. echo "begin copy vctgo-gateway "
  25. cp ../vctgo-gateway/target/vctgo-gateway.jar ./vctgo/gateway/jar
  26. echo "begin copy vctgo-auth "
  27. cp ../vctgo-auth/target/vctgo-auth.jar ./vctgo/auth/jar
  28. echo "begin copy vctgo-demo "
  29. cp ../vctgo-demo/target/vctgo-demo.jar ./vctgo/demo/jar
  30. echo "begin copy vctgo-monitor "
  31. cp ../vctgo-visual/vctgo-monitor/target/vctgo-monitor.jar ./vctgo/visual/monitor/jar
  32. echo "begin copy vctgo-system "
  33. cp ../vctgo-modules/vctgo-system/target/vctgo-system.jar ./vctgo/modules/system/jar
  34. echo "begin copy vctgo-file "
  35. cp ../vctgo-modules/vctgo-file/target/vctgo-file.jar ./vctgo/modules/file/jar
  36. echo "begin copy vctgo-gen "
  37. cp ../vctgo-modules/vctgo-gen/target/vctgo-gen.jar ./vctgo/modules/gen/jar
  38. echo "begin copy vctgo-job "
  39. cp ../vctgo-modules/vctgo-job/target/vctgo-job.jar ./vctgo/modules/job/jar