diff --git a/server-ce/hotfix/5.5.7/Dockerfile b/server-ce/hotfix/5.5.7/Dockerfile new file mode 100644 index 0000000000..d1f327716a --- /dev/null +++ b/server-ce/hotfix/5.5.7/Dockerfile @@ -0,0 +1,6 @@ +FROM sharelatex/sharelatex:5.5.6 + +# Apply security updates to base image +RUN apt update && apt install -y linux-libc-dev \ + && unattended-upgrade --verbose --no-minimal-upgrade-steps \ + && rm -rf /var/lib/apt/lists/* diff --git a/server-ce/hotfix/6.0.1/Dockerfile b/server-ce/hotfix/6.0.1/Dockerfile new file mode 100644 index 0000000000..f081e2ddb8 --- /dev/null +++ b/server-ce/hotfix/6.0.1/Dockerfile @@ -0,0 +1,10 @@ +FROM sharelatex/sharelatex:6.0.0 + +# Apply security updates to base image +RUN apt update && apt install -y linux-libc-dev \ + && unattended-upgrade --verbose --no-minimal-upgrade-steps \ + && rm -rf /var/lib/apt/lists/* + +# Update mongo compatibility versions +COPY mongo-version.patch . +RUN patch -p1 < mongo-version.patch && rm mongo-version.patch diff --git a/server-ce/hotfix/6.0.1/mongo-version.patch b/server-ce/hotfix/6.0.1/mongo-version.patch new file mode 100644 index 0000000000..e43c031346 --- /dev/null +++ b/server-ce/hotfix/6.0.1/mongo-version.patch @@ -0,0 +1,13 @@ +--- a/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs ++++ b/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs +@@ -6,8 +6,8 @@ import { + + const { ObjectId } = mongodb + +-const MIN_MONGO_VERSION = [6, 0] +-const MIN_MONGO_FEATURE_COMPATIBILITY_VERSION = [6, 0] ++const MIN_MONGO_VERSION = [8, 0] ++const MIN_MONGO_FEATURE_COMPATIBILITY_VERSION = [7, 0] + + // Allow ignoring admin check failures via an environment variable + const OVERRIDE_ENV_VAR_NAME = 'ALLOW_MONGO_ADMIN_CHECK_FAILURES' diff --git a/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs b/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs index 83e0e2c8a3..346257a2d2 100644 --- a/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs +++ b/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs @@ -6,8 +6,8 @@ import { const { ObjectId } = mongodb -const MIN_MONGO_VERSION = [6, 0] -const MIN_MONGO_FEATURE_COMPATIBILITY_VERSION = [6, 0] +const MIN_MONGO_VERSION = [8, 0] +const MIN_MONGO_FEATURE_COMPATIBILITY_VERSION = [7, 0] // Allow ignoring admin check failures via an environment variable const OVERRIDE_ENV_VAR_NAME = 'ALLOW_MONGO_ADMIN_CHECK_FAILURES'