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
|
|
|
|
#
|
|
|
|
#################################
|
|
|
|
#
|
|
|
|
# DO NOT CALL THIS SCRIPT DIRECTLY.
|
|
|
|
#
|
|
|
|
# use the Makefile.
|
|
|
|
#
|
|
|
|
#################################
|
|
|
|
#
|
|
|
|
# Build the mongodb docker container using the Dockerfile
|
|
|
|
#
|
|
|
|
# https://charlesreid1.com/wiki/Docker/Dockerfiles
|
|
|
|
|
|
|
|
function usage {
|
|
|
|
echo ""
|
|
|
|
echo "build_mongodb.sh script:"
|
|
|
|
echo "builds a MongoDB docker container."
|
|
|
|
echo ""
|
|
|
|
echo " ./build_mongodb.sh"
|
|
|
|
echo ""
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ "$#" -ne 0 ]];
|
|
|
|
then
|
|
|
|
usage
|
|
|
|
else
|
|
|
|
|
|
|
|
docker build -t jupitermongo .
|
|
|
|
|
|
|
|
fi
|