-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
jest unit test : mongodb connection fails on docker (CI) pipeline, works well on local #437
Comments
as this says, please enable & post the debug output, read here how to enable it if this is an docker problem, please provide what image is used did you already try mongodb 4.0+? and did you already try the beta of |
@hasezoey Appreciate your quick response. I have enabled the debug and below is the output. [Error I can see is : MongoMS:MongoInstance Mongo[37559]: MongodbInstance: Instance has failed]
|
Not sure if this is a docker issue. I will get and provide the details on the image used. I haven't tried with mongodb 4.0+, neither with mongo-memory-server beta. |
sorry if it wasnt clear from the template & me, i meant the binary used, from the log i could see the "used" binary is
no, this is not the error, this is just to know that it failed not what failed, from the log i could see that the error is |
my docker file :
|
instead of i can see from this file that your are using tracking issue is #347 |
Thanks @hasezoey .. Do you have any idea of any node:apline docker image (>12) which has mongodb in it? |
there are some possibilities:
if you should find an working image, please report back PS: you can try #347 (comment) , i have not verified this myself yet, but it seems to be an working binary |
Thanks @hasezoey . I will check on this and revert back.. |
Duplicate of #347 |
Versions
package: mongo-memory-server
What is your question?
"mongodb" connection fails on docker (CI) pipeline, however it works well on local. Below is the error it shows when pipeline fails. It should create in-memory mongodb server and execute the unit tests on that. I tried searching similar issue, but I didn't find anything apart from this. I did the suggestions provided in that issue but it didn't help. Can someone please shed some light on this? I am baddly stuck due to this.
Below is my Code :
The text was updated successfully, but these errors were encountered: