From ab2689a3fb63817d248c0a06f8b310cbb8f03a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Wed, 10 Apr 2024 11:25:09 +0200 Subject: [PATCH] chore: upgrade to node 18 in edx-platform Without this fix, openedx Docker image building fails with the following error: > [linux/arm64 nodejs-requirements 4/4] RUN --mount=type=bind,from=edx-platform,source=/package.json,target=/openedx/edx-platform/package.json --mount=type=bind,from=edx-platform,source=/package-lock.json,target=/openedx/edx-platform/package-lock.json --mount=type=bind,from=edx-platform,source=/scripts/copy-node-modules.sh,target=/openedx/edx-platform/scripts/copy-node-modules.sh --mount=type=cache,target=/root/.npm,sharing=shared npm clean-install --no-audit --registry=https://registry.npmjs.org/: 95.51 npm notice 95.51 npm notice New major version of npm available! 8.3.1 -> 10.5.1 95.51 npm notice Changelog: 95.51 npm notice Run `npm install -g npm@10.5.1` to update! 95.51 npm notice 95.51 npm ERR! code EINTEGRITY 95.51 npm ERR! sha512-sWMb40chzlUOKrHZCGpZoUrVnGm6khfL/fAMKO8vLtUR8yOmWIVVN7MRmep3/DSFhy1Hilon6qAH+UbLZgGG0w== integrity checksum failed when using sha512: wanted sha512-sWMb40chzlUOKrHZCGpZoUrVnGm6khfL/fAMKO8vLtUR8yOmWIVVN7MRmep3/DSFhy1Hilon6qAH+UbLZgGG0w== but got sha512-P9aZDwDEAVgAbdHG/ViapRzAUJ6zBSq/4I1lJFluIbrld6Sv6LI+HT2J4dgWqtfaCgIyDnHBHSHiJ/anter7wQ==. (11488 bytes) --- changelog.d/20240410_102248_regis_node18.md | 1 + tutor/templates/build/openedx/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20240410_102248_regis_node18.md diff --git a/changelog.d/20240410_102248_regis_node18.md b/changelog.d/20240410_102248_regis_node18.md new file mode 100644 index 0000000..17308df --- /dev/null +++ b/changelog.d/20240410_102248_regis_node18.md @@ -0,0 +1 @@ +- [Improvement] Upgrade Nodejs from 16.14.0 to 18.20.1 in edx-platform. (by @regisb) diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index ebefd7e..bb66c51 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -122,7 +122,7 @@ ENV PATH /openedx/nodeenv/bin:/openedx/venv/bin:${PATH} # https://github.com/openedx/edx-platform/blob/master/requirements/edx/base.txt # https://github.com/pyenv/pyenv/releases RUN pip install nodeenv==1.8.0 -RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt +RUN nodeenv /openedx/nodeenv --node=18.20.1 --prebuilt # Install nodejs requirements ARG NPM_REGISTRY={{ NPM_REGISTRY }}