-
Notifications
You must be signed in to change notification settings - Fork 39
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
Does mongo-unit work in docker containers? #15
Comments
yes it does |
What do you have to install to make it work in a container? |
I am doing something like this:
Then I can build the image using:
And run it using:
The only annoying thing is, every time you run the tests you'll have to re-download the binaries for this library, maybe there is a way to cache it idk |
If you want to avoid the download every time, you could download the mongo during the docker build:
|
@Philmod ah yes thanks for pointing me in the right direction, I instead create a little script const { start, stop } = require('mongo-unit');
const run = async () => {
await start();
await stop();
};
run()
.then(() => process.exit(0))
.catch(err => {
console.error(err);
process.exit(1);
}); And added |
No description provided.
The text was updated successfully, but these errors were encountered: