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.
We support the following versions:
- 4.0
- 4.2
- 4.4
- 5.0
- 6.0
- 7.0
- 8.0
They are from Docker official image.
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
mainbranch - Pass the CI, and merge it
- Then, new images are built and pushed to Docker Hub
# with latest version
$ make test
# with all versions
$ make test-all
- Add
src/N.Ndirectory with Dockerfile etc. - Add
.github/workflows/ci-N-N.yaml - Update
make test-alldefinition in Makefile