Răsfoiți Sursa

Merge pull request #13251 from overleaf/msm-update-mongo-5

Update mongo in dev-environment to 5.0.17

GitOrigin-RevId: 37113421b41255ad4b72e120f4fe23808ef7d743
Miguel Serrano 3 ani în urmă
părinte
comite
6c29e0a36e

+ 3 - 1
services/chat/buildscript.txt

@@ -3,6 +3,8 @@ chat
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=False
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=False
 --public-repo=False
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/chat/docker-compose.ci.yml

@@ -42,7 +42,7 @@ services:
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     user: root
     user: root
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/chat/docker-compose.yml

@@ -44,7 +44,7 @@ services:
     command: npm run --silent test:acceptance
     command: npm run --silent test:acceptance
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 3 - 1
services/contacts/buildscript.txt

@@ -3,6 +3,8 @@ contacts
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=True
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=False
 --public-repo=False
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/contacts/docker-compose.ci.yml

@@ -42,7 +42,7 @@ services:
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     user: root
     user: root
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/contacts/docker-compose.yml

@@ -44,7 +44,7 @@ services:
     command: npm run --silent test:acceptance
     command: npm run --silent test:acceptance
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 3 - 1
services/docstore/buildscript.txt

@@ -3,6 +3,8 @@ docstore
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=False
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=True
 --public-repo=True
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/docstore/docker-compose.ci.yml

@@ -51,7 +51,7 @@ services:
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     user: root
     user: root
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/docstore/docker-compose.yml

@@ -53,7 +53,7 @@ services:
     command: npm run --silent test:acceptance
     command: npm run --silent test:acceptance
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 3 - 1
services/document-updater/buildscript.txt

@@ -3,6 +3,8 @@ document-updater
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=False
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=True
 --public-repo=True
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/document-updater/docker-compose.ci.yml

@@ -51,7 +51,7 @@ services:
       retries: 20
       retries: 20
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/document-updater/docker-compose.yml

@@ -53,7 +53,7 @@ services:
       retries: 20
       retries: 20
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 3 - 1
services/history-v1/buildscript.txt

@@ -3,6 +3,8 @@ history-v1
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=False
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=False
 --public-repo=False
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/history-v1/docker-compose.ci.yml

@@ -50,7 +50,7 @@ services:
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     user: root
     user: root
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/history-v1/docker-compose.yml

@@ -52,7 +52,7 @@ services:
     command: npm run --silent test:acceptance
     command: npm run --silent test:acceptance
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 3 - 1
services/notifications/buildscript.txt

@@ -3,6 +3,8 @@ notifications
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=False
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=True
 --public-repo=True
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/notifications/docker-compose.ci.yml

@@ -42,7 +42,7 @@ services:
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
     user: root
     user: root
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/notifications/docker-compose.yml

@@ -44,7 +44,7 @@ services:
     command: npm run --silent test:acceptance
     command: npm run --silent test:acceptance
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 3 - 1
services/project-history/buildscript.txt

@@ -3,6 +3,8 @@ project-history
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=
 --env-add=
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=True
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=False
 --public-repo=False
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/project-history/docker-compose.ci.yml

@@ -51,7 +51,7 @@ services:
       retries: 20
       retries: 20
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/project-history/docker-compose.yml

@@ -53,7 +53,7 @@ services:
       retries: 20
       retries: 20
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/project-history/package.json

@@ -9,7 +9,7 @@
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "start": "node $NODE_APP_OPTIONS app.js",
     "start": "node $NODE_APP_OPTIONS app.js",
     "nodemon": "nodemon --config nodemon.json",
     "nodemon": "nodemon --config nodemon.json",
-    "test:acceptance:_run": "LOG_LEVEL=error mocha --loader=esmock --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
+    "test:acceptance:_run": "LOG_LEVEL=fatal mocha --loader=esmock --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:unit:_run": "LOG_LEVEL=fatal mocha --loader=esmock --recursive --reporter spec $@ test/unit/js",
     "test:unit:_run": "LOG_LEVEL=fatal mocha --loader=esmock --recursive --reporter spec $@ test/unit/js",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
     "format": "prettier --list-different $PWD/'**/*.js'",
     "format": "prettier --list-different $PWD/'**/*.js'",

+ 3 - 1
services/track-changes/buildscript.txt

@@ -3,6 +3,8 @@ track-changes
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
 --env-add=AWS_BUCKET=bucket
 --env-add=AWS_BUCKET=bucket
 --env-pass-through=
 --env-pass-through=
+--esmock-loader=False
+--has-custom-nodemon=True
 --node-version=16.17.1
 --node-version=16.17.1
 --public-repo=True
 --public-repo=True
---script-version=4.1.0
+--script-version=4.2.0

+ 1 - 1
services/track-changes/docker-compose.ci.yml

@@ -58,7 +58,7 @@ services:
       retries: 20
       retries: 20
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/track-changes/docker-compose.yml

@@ -60,7 +60,7 @@ services:
       retries: 20
       retries: 20
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
     healthcheck:
     healthcheck:
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
       test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"

+ 1 - 1
services/web/docker-compose.ci.yml

@@ -94,7 +94,7 @@ services:
     image: redis
     image: redis
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
 
 
   ldap:
   ldap:

+ 1 - 1
services/web/docker-compose.yml

@@ -89,7 +89,7 @@ services:
     image: redis
     image: redis
 
 
   mongo:
   mongo:
-    image: mongo:4.4.16
+    image: mongo:5.0.17
     command: --replSet overleaf
     command: --replSet overleaf
 
 
   ldap:
   ldap: