README-usage.bash 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. ## NOTE
  2. echo "操作:构建调试" \
  3. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg02" \
  4. && cd ${project_path} \
  5. && sudo docker-compose --file compose.yml down \
  6. && sudo docker-compose --file compose.yml up --detach --build \
  7. && sudo docker exec -it sri-server-bg02 bash
  8. echo "操作:启动调试环境" \
  9. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg02" \
  10. && cd ${project_path} \
  11. && sudo docker-compose --file compose.yml down \
  12. && sudo docker-compose --file compose.yml up --detach \
  13. && sudo docker exec -it sri-server-bg02 bash
  14. echo "操作:重启调试环境" \
  15. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg02" \
  16. && cd ${project_path} \
  17. && sudo docker-compose --file compose.yml restart \
  18. && sudo docker exec -it sri-server-bg02 bash
  19. echo "操作:进入调试环境" \
  20. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg02" \
  21. && cd ${project_path} \
  22. && sudo docker exec -it sri-server-bg02 bash
  23. echo "操作:初装启动" \
  24. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg02" \
  25. && cd ${project_path} \
  26. && sudo docker-compose --file compose.yml down \
  27. && sudo docker-compose --file compose.yml up --detach --build \
  28. && sudo docker-compose --file compose.yml logs --follow