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

Run mongosh or mongo if cmd exists #5774

Merged
merged 2 commits into from
Aug 29, 2022
Merged

Run mongosh or mongo if cmd exists #5774

merged 2 commits into from
Aug 29, 2022

Conversation

eddumelendez
Copy link
Member

Previously, the command execution relied on the image version which
is different when building custom images. Instead, mongosh or mongo
is executed if it is present within the PATH.

Previously, the command execution relied on the image version which
is different when building custom images. Instead, `mongosh` or `mongo`
is executed if it is present within the PATH.
In order to make sure tests are performing operations test has been
updated.
@eddumelendez eddumelendez merged commit 42a7441 into master Aug 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the mongo_cmd_detection branch August 29, 2022 15:05
melix added a commit to micronaut-projects/micronaut-test-resources that referenced this pull request Aug 30, 2022
This works around a breaking change in the latest image which isn't
compatible with Testcontainers.

See testcontainers/testcontainers-java#5774
melix added a commit to micronaut-projects/micronaut-test-resources that referenced this pull request Aug 30, 2022
* Let the user choose a custom db name

Fixes #74

* Hardcode MongoDB image version

This works around a breaking change in the latest image which isn't
compatible with Testcontainers.

See testcontainers/testcontainers-java#5774
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants