Open zpatekar opened 1 year ago
I have a PR for this, https://github.com/docker-library/mongo/pull/600, but wasn't certain if it was good enough.
Related to https://github.com/docker-library/mongo/issues/509
I see that your PR already has one part solved, and the same issue applies to the shard server initial startup. I would really appreciate these changes going in officially, what would be the best path to take here? Can you update your PR to include the change I proposed above?
Any solutions, yet?
Hello, I'm having issues on upgrading local sharded cluster from version 4.4 to 5. For example, Dockerfile for config and shard servers looks like this:
Docker-compose.yml:
Issue is in docker-entrypoint.sh where the script removes --replSet switch when trying to start un-authenticated mongod version to add root user and password provided in the environment file. The error presented is:
BadValue: Cannot start a configsvr as a standalone server. Please use the option --replset to start the node as a replica set.
It should remove both --configsvr and --shardsvr switches, plus add --dbPath switch because config server uses a different path. When I try adding this options everything works. Additions are:__mongod_hack_ensure_arg_val --dbpath "$(dbPath "$@")" "${mongodHackedArgs[@]}" (line 344)
Is this something that can be added/modified officially?