./do.sh build - build image tagged solargis/mongo:4.2./do.sh test - build an run tests on image./do.sh exec [cmd] - build and run container and exec custom command on it (default bash)./ds.sh push - build, test and push imagedocker-entrypoint-initdb.d/auto-keyFile.sh:
if _mongod_hack_have_arg --replSet "$@" && ! _mongod_hack_have_arg --keyFile "$@"; then
KEY_FILE="$HOME/.keyFile"
_mongod_hack_ensure_arg_val --keyFile "$KEY_FILE" "$@"
set -- "${mongodHackedArgs[@]}"
KEY="$(echo -n "$MONGO_INITDB_ROOT_PASSWORD" | openssl dgst -sha256 -binary | openssl base64 -A)"
cat > "$KEY_FILE" <<< "$KEY"
chmod 0400 "$KEY_FILE"
echo "$BASH_SOURCE: added '--keyFile' '$KEY_FILE' (size $(wc -c "$KEY_FILE"))"
fi
Content type
Image
Digest
Size
161.1 MB
Last updated
over 5 years ago
docker pull solargis/mongo