Install mongosh to Windows images#746
Install mongosh to Windows images#746marcospereira wants to merge 1 commit intodocker-library:masterfrom
Conversation
|
To be completely frank, I'm not 100% convinced we should install As for the checksums, it's neat that this is possible to implement in such clean PowerShell, but if we implement/accept this, what we'll actually need is something that splits this -- scraping the checksum in Can you perhaps explain a bit more about your use case where you're needing |
I'm mainly using the Windows version for local dev, tests, and CI. The way I do it is by starting the containers using Docker Compose, and then having a services:
mongodb:
image: mongo:8
container_name: mongodb
hostname: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${DATABASE_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "27017:27017"
healthcheck:
test: [ "CMD", "mongosh", "--eval", "'db.runCommand({ ping: 1 })'" ]
interval: 10s
timeout: 5s
retries: 5On Windows, this will fail because Also, if possible, could you please approve the workflows to run so that I can see if this at least gets a green build? |
Ah, okay, I took a look at the If you decide it makes sense to include mongosh in the Windows image, I can try to adapt this PR to do so instead. |
Related to #708.
This installs
mongoshon Windows images, since it is not installed by default withmongodb.References