stop-all-dockers 658 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. # Stop all three sets of dockers. This is useful if, for example, a run
  3. # of repro-all-dockers is interrupted, leaving some dockers (and
  4. # potentionally the processes therein) running.
  5. # cd into the directory containing this script (from the bash faq 028)
  6. if [[ $BASH_SOURCE = */* ]]; then
  7. cd -- "${BASH_SOURCE%/*}/" || exit
  8. fi
  9. # Duoram
  10. echo Stopping Duoram dockers
  11. echo
  12. ( cd ../Docker && ./stop-docker ) || exit 1
  13. # Floram
  14. echo
  15. echo Stopping Floram dockers
  16. echo
  17. ( cd floram-docker && ./stop-docker ) || exit 1
  18. # Circuit ORAM
  19. echo
  20. echo Stopping Circuit ORAM dockers
  21. echo
  22. ( cd circuit-oram-docker/docker && ./stop-docker ) || exit 1
  23. echo