Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows docker image lacks mogosh and docker-entrypoint #708

Open
aneojgurhem opened this issue Aug 8, 2024 · 5 comments
Open

Windows docker image lacks mogosh and docker-entrypoint #708

aneojgurhem opened this issue Aug 8, 2024 · 5 comments

Comments

@aneojgurhem
Copy link

Hello,

I need to use Windows docker image to deploy mongodb. However, it lacks mogosh binary and an entrypoint script compared to what is available for Linux.
It is an issue for the following reasons:

  • Mongosh unavailability prevents the implementation of docker health check as it requires to execute a command from the container. It also prevents the execution of some useful commands such as replication enabling and data insertion.
  • The entrypoint provided in the Linux image is really convenient to set up a mongodb instance. Having it in Windows would save a lot of trouble.
  • Entrypoint also take care of the execution of mongo file from /docker-entrypoint-initdb.d/. It is also quite helpful.

Mongosh would really help to have a properly set up mongodb instance with docker on Windows. Do you think it could be added in Windows images, just like for Linux ?

Thanks !

@tianon
Copy link
Member

tianon commented Aug 8, 2024

Regarding the entrypoint script, see #291 (comment)

Regarding mongosh, that's a good point -- I was hoping they'd add it to the standard server installer (at least as an optional component), but they have not done so. They do appear to publish installers specific to mongosh (https://www.mongodb.com/try/download/shell, https://github.com/mongodb-js/mongosh/releases, both .zip and .msi), but I can't seem to find any published checksums of those installers we could use to verify the downloads. 😞

@aneojgurhem
Copy link
Author

I understand for the entrypoint. That's a shame.

There is a PGP key associated to the zip file. Isn't that enough to validate that we got the right file ?

@yosifkit
Copy link
Member

yosifkit commented Aug 8, 2024

There is a PGP key associated to the zip file. Isn't that enough to validate that we got the right file ?

That'd be easily in Linux, but Windows doesn't have a default tool that could be installed in a trusted way to verify a PGP signature, so then we'd have to also download and verify a tool for that.

@tianon
Copy link
Member

tianon commented Aug 8, 2024

Also, a signature and a checksum solve different (related) problems -- one provides publisher identity verification while the other provides transport / "replacement" verification (or a clean cache bust if the file did need to be replaced/republished for a legitimate reason).

@aneojgurhem
Copy link
Author

That's unfortunate. But I think it would be worth it to have mongosh on the windows image as it would save a lot of time.

By any chance, did you already ask the mongosh team for a checksum ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants