From 326a18f7a4b23fbba825d0bbba6b5a8e16fc90f6 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 29 Apr 2021 23:45:01 +0100 Subject: [PATCH] www: use docker:lts in build-site.sh The nodejs.org website build uses `fibers` which is broken on Node.js 16 due to an incompatibility with the version of V8 that it contains. Switch the Docker image used to build the website from `node:latest` to `node:lts` to buy some time for the website to migrate off `fibers`. --- ansible/www-standalone/resources/scripts/build-site.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/www-standalone/resources/scripts/build-site.sh b/ansible/www-standalone/resources/scripts/build-site.sh index a6543ca93..a75f5d154 100755 --- a/ansible/www-standalone/resources/scripts/build-site.sh +++ b/ansible/www-standalone/resources/scripts/build-site.sh @@ -37,12 +37,12 @@ git checkout origin/master nodeuid=$(grep ^nodejs: /etc/passwd | awk -F: '{print $3}') nodegid=$(grep ^nodejs: /etc/passwd | awk -F: '{print $4}') -docker pull node:latest +docker pull node:lts docker run \ --rm \ -v ${clonedir}:/website/ \ -v /home/nodejs/.npm:/npm/ \ - node:latest \ + node:lts \ bash -c " \ apt-get update && apt-get install -y rsync && \ addgroup nodejs --gid ${nodeuid} && \