Skip to content

Commit

Permalink
Add support for Node.js 20 and upgrade buster to bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Feb 26, 2025
1 parent b87fb8f commit ecb2921
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-toolchains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
strategy:
matrix:
language: [
'node:8',
#'node:8',
'node:10',
'node:12',
'node:14',
'node:20',
#'python:3.5.10',
'python:3.6.12',
'python:3.7.9',
Expand Down
5 changes: 3 additions & 2 deletions build-toolchains-manual.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
languages=(
#node:linux-arm:8
#node:linux-arm:10
node:linux-arm:12
node:linux-arm:14
#node:linux-arm:12
#node:linux-arm:14
#node:linux-arm64:8
#node:linux-arm64:10
#node:linux-arm64:12
Expand All @@ -21,6 +21,7 @@ languages=(
#node:linux-x64:10
#node:linux-x64:12
#node:linux-x64:14
node:linux-x64:20
#python:linux-arm:3.5.10
#python:linux-arm:3.6.12
#python:linux-arm:3.7.9
Expand Down
5 changes: 2 additions & 3 deletions toolchain/linux-arm/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM balenalib/raspberry-pi-debian:buster
FROM balenalib/raspberry-pi-debian:bookworm

ARG DEBIAN_FRONTEND=noninteractive
ARG NODE_VERSION
Expand All @@ -20,14 +20,13 @@ RUN apt update && \
liblzma-dev \
libudev-dev \
pkg-config \
python \
python3 \
sudo \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
bash -c "export NVM_DIR=\${HOME}/.nvm && \
source \${NVM_DIR}/nvm.sh && \
npm config -g set unsafe-perm true && \
npm config -g set cache /tmp/.npm && \
nvm cache clear"
5 changes: 2 additions & 3 deletions toolchain/linux-arm64/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM arm64v8/debian:buster
FROM arm64v8/debian:bookworm

ARG DEBIAN_FRONTEND=noninteractive
ARG NODE_VERSION
Expand All @@ -20,14 +20,13 @@ RUN apt update && \
liblzma-dev \
libudev-dev \
pkg-config \
python \
python3 \
sudo \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
bash -c "export NVM_DIR=\${HOME}/.nvm && \
source \${NVM_DIR}/nvm.sh && \
npm config -g set unsafe-perm true && \
npm config -g set cache /tmp/.npm && \
nvm cache clear"
5 changes: 2 additions & 3 deletions toolchain/linux-x64/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster
FROM debian:bookworm

ARG DEBIAN_FRONTEND=noninteractive
ARG NODE_VERSION
Expand All @@ -20,14 +20,13 @@ RUN apt update && \
liblzma-dev \
libudev-dev \
pkg-config \
python \
python3 \
sudo \
zlib1g-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
bash -c "export NVM_DIR=\${HOME}/.nvm && \
source \${NVM_DIR}/nvm.sh && \
npm config -g set unsafe-perm true && \
npm config -g set cache /tmp/.npm && \
nvm cache clear"

0 comments on commit ecb2921

Please sign in to comment.