Files for building MongoDB docker container.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
364B

  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