From bb52902303c0074907e36a16679a4e785ec9aabf Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 14 Mar 2022 15:29:31 -0700 Subject: [PATCH] Update nodejs runtime to version 16 We had been using version 14 which is the previous LTS. Now there are problems running: npx browserslist@latest --update-db running out of memory. Update to the current nodejs LTS version to ensure we are running an up to date runtime that hopefully performs more consistently with the browserslist command. Change-Id: Ib20c1090ea0f30b7dac2780b6ed963dd6e4b6f77 --- .zuul.yaml | 2 +- Dockerfile | 2 +- tools/install-js-tools.sh | 2 +- tools/pip.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 773c684e10..3ec608934e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -277,7 +277,7 @@ - project: vars: - node_version: 14 + node_version: 16 release_python: python3 check: jobs: diff --git a/Dockerfile b/Dockerfile index 16bde64d47..d65a9746c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM docker.io/library/node:14-bullseye as js-builder +FROM docker.io/library/node:16-bullseye as js-builder COPY web /tmp/src # Explicitly run the Javascript build diff --git a/tools/install-js-tools.sh b/tools/install-js-tools.sh index 1044034221..6bfeaee9a0 100755 --- a/tools/install-js-tools.sh +++ b/tools/install-js-tools.sh @@ -25,7 +25,7 @@ if type apt-get; then $SUDO apt-get install -y apt-transport-https curl gnupg2 # Install recent NodeJS repo curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | $SUDO apt-key add - - echo "deb https://deb.nodesource.com/node_10.x bionic main" | $SUDO tee /etc/apt/sources.list.d/nodesource.list + echo "deb https://deb.nodesource.com/node_16.x focal main" | $SUDO tee /etc/apt/sources.list.d/nodesource.list # Install yarn repo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | $SUDO apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | $SUDO tee /etc/apt/sources.list.d/yarn.list diff --git a/tools/pip.sh b/tools/pip.sh index a01afa7ae3..65d903a048 100755 --- a/tools/pip.sh +++ b/tools/pip.sh @@ -24,7 +24,7 @@ then # Initialize nodeenv and tell it to re-use the currently active virtualenv attempts=0 set +e - until nodeenv --python-virtualenv -n 14.3.0 ; do + until nodeenv --python-virtualenv -n 16.14.0 ; do ((attempts++)) if [[ $attempts > 2 ]] then