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.
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script should be made executable
|
|
|
|
# and called in /etc/rc.local
|
|
|
|
# by the desired user:
|
|
|
|
#
|
|
|
|
# su charles -c '/path/to/script'
|
|
|
|
|
|
|
|
# remove crusty processes
|
|
|
|
docker ps -qa | xargs -I% docker rm -f %
|
|
|
|
|
|
|
|
sleep 5;
|
|
|
|
|
|
|
|
# run mongodb
|
|
|
|
${HOME}/codes/docker/d-mongodb/run_mongodb.sh
|
|
|
|
|
|
|
|
sleep 5;
|
|
|
|
|
|
|
|
# run mongo express
|
|
|
|
${HOME}/codes/docker/d-mongoexpress/run_stock.sh
|
|
|
|
|