-
hi, the stage on my ci istest_env_var_dev:
image: dockerproxy.tech.orange/node:16.5-alpine3.12
stage: test
script:
- npm install
- sleep 20
- uname -a
- cat /etc/os-release
- ls -la /root/.cache/mongodb-binaries
- node --inspect testMongodserverMemory.js Which give the following result
my testconst {MongoMemoryServer} = require('mongodb-memory-server');
let myPromise = new Promise(async function (myResolve, myReject) {
console.log("before MongoMemoryServer create")
let mongo = await MongoMemoryServer.create();
if (mongo) {
myResolve(mongo);
} else {
myReject(mongo);
}
});
myPromise
.then(async function (mongo) {
console.log(mongo)
await mongo.stop()
})
.catch(function (error) {
console.log(error);
}) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Alpine linux is not supported, because mongodb does not provide binaries for this as can be seen in #347 current workaround for docker: #347 (comment) btw, you did not provide what versions are used |
Beta Was this translation helpful? Give feedback.
-
sudo apt-get install curl libcurl3 solving this |
Beta Was this translation helpful? Give feedback.
-
On CircleCI I've had success with using the |
Beta Was this translation helpful? Give feedback.
Alpine linux is not supported, because mongodb does not provide binaries for this as can be seen in #347
current workaround for docker: #347 (comment)
btw, you did not provide what versions are used