From MongoDB v6.0, the mongo shell is no longer included in the official Docker image. Instead, it has been replaced with mongosh.
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.3k
- Forks
- 310
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 1
Description
Need to update the health check to use mongosh instead of mongo.
In docker-compose.yml need to change the health check to this:
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open docker-compose.yml and locate the existing MongoDB healthcheck. Compare it with the issue's mongosh-based command, then verify that the healthcheck uses the documented command, interval, timeout, and retry values. Done means the compose healthcheck no longer depends on the removed mongo shell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, mongodb
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100