summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2022-03-14 15:29:31 -0700
committerClark Boylan <clark.boylan@gmail.com>2022-03-14 15:29:31 -0700
commitbb52902303c0074907e36a16679a4e785ec9aabf (patch)
treea550ba90ba50ff328b32ceaa76eb63cbbaae83c5
parentac51b54acc0cdbd884d22da199ccda426c893c89 (diff)
downloadzuul-bb52902303c0074907e36a16679a4e785ec9aabf.tar.gz
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
-rw-r--r--.zuul.yaml2
-rw-r--r--Dockerfile2
-rwxr-xr-xtools/install-js-tools.sh2
-rwxr-xr-xtools/pip.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 773c684e1..3ec608934 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 16bde64d4..d65a9746c 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 104403422..6bfeaee9a 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 a01afa7ae..65d903a04 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