Files for building MongoDB docker container.

startup_script.sh 364B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. #
  3. # This script should be made executable
  4. # and called in /etc/rc.local
  5. # by the desired user:
  6. #
  7. # su charles -c '/path/to/script'
  8. # remove crusty processes
  9. docker ps -qa | xargs -I% docker rm -f %
  10. sleep 5;
  11. # run mongodb
  12. ${HOME}/codes/docker/d-mongodb/run_mongodb.sh
  13. sleep 5;
  14. # run mongo express
  15. ${HOME}/codes/docker/d-mongoexpress/run_stock.sh