add support of arm64 architecture for react-express-mongodb
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
1c00061396
commit
f5d3c57a17
8
react-express-mongodb/backend/db/index.js
vendored
8
react-express-mongodb/backend/db/index.js
vendored
@ -7,11 +7,7 @@ exports.connect = (app) => {
|
||||
const options = {
|
||||
useNewUrlParser: true,
|
||||
autoIndex: false, // Don't build indexes
|
||||
reconnectTries: 30, // Retry up to 30 times
|
||||
reconnectInterval: 500, // Reconnect every 500ms
|
||||
poolSize: 10, // Maintain up to 10 socket connections
|
||||
// If not connected, return errors immediately rather than waiting for reconnect
|
||||
bufferMaxEntries: 0,
|
||||
maxPoolSize: 10, // Maintain up to 10 socket connections
|
||||
};
|
||||
|
||||
const connectWithRetry = () => {
|
||||
@ -24,7 +20,7 @@ exports.connect = (app) => {
|
||||
app.emit("ready");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("MongoDB connection unsuccessful, retry after 2 seconds.");
|
||||
console.log("MongoDB connection unsuccessful, retry after 2 seconds.", err);
|
||||
setTimeout(connectWithRetry, 2000);
|
||||
});
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Create image based on the official Node image from dockerhub
|
||||
FROM node:lts-buster-slim
|
||||
FROM node:lts-buster
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
8793
react-express-mongodb/frontend/package-lock.json
generated
8793
react-express-mongodb/frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@
|
||||
"@testing-library/user-event": "^7.2.1",
|
||||
"axios": "^0.21.4",
|
||||
"bootstrap": "^4.3.1",
|
||||
"node-sass": "^6.0.1",
|
||||
"sass": "^1.43.4",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-scripts": "^4.0.3"
|
||||
|
Loading…
Reference in New Issue
Block a user