https://hub.docker.com/r/a2ikm/sharded-mongo
a2ikm/sharded-mongo
is a container which runs a smallest sharded MongoDB cluster.
It is composed of one shard server, one config server, and one mongos process.
WARNING: this project focuses on simple CI usages and is insecure. Don't use it for production.
$ docker run --rm --publish 27017:27017 a2ikm/sharded-mongo
The mongos process listens the 27017
port for client connections.
It loads *.sh
files or *.js
files mounted at /docker-entrypoint-initdb.d
.
They are managed in versions.json hosted on GitHub: https://github.com/a2ikm/docker-sharded-mongo/blob/main/versions.json.
It is updated weekly to track recent minor versions.
Its Dockerfile and entrypoint script are managed on GitHub: https://github.com/a2ikm/docker-sharded-mongo
If you have an issue, please file it to https://github.com/a2ikm/docker-sharded-mongo/issues.
- Create a pull request to the
main
branch - Pass the CI, and merge it
- Then, new images are built and pushed to Docker Hub
# with latest version
$ make test
# with specific version
$ make test MONGO_VERSION=4.4