Skip to content

Commit ecb2921

Browse files
committed
Add support for Node.js 20 and upgrade buster to bookworm
1 parent b87fb8f commit ecb2921

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

.github/workflows/build-toolchains.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
strategy:
1616
matrix:
1717
language: [
18-
'node:8',
18+
#'node:8',
1919
'node:10',
2020
'node:12',
2121
'node:14',
22+
'node:20',
2223
#'python:3.5.10',
2324
'python:3.6.12',
2425
'python:3.7.9',

build-toolchains-manual.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
languages=(
1212
#node:linux-arm:8
1313
#node:linux-arm:10
14-
node:linux-arm:12
15-
node:linux-arm:14
14+
#node:linux-arm:12
15+
#node:linux-arm:14
1616
#node:linux-arm64:8
1717
#node:linux-arm64:10
1818
#node:linux-arm64:12
@@ -21,6 +21,7 @@ languages=(
2121
#node:linux-x64:10
2222
#node:linux-x64:12
2323
#node:linux-x64:14
24+
node:linux-x64:20
2425
#python:linux-arm:3.5.10
2526
#python:linux-arm:3.6.12
2627
#python:linux-arm:3.7.9

toolchain/linux-arm/node/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM balenalib/raspberry-pi-debian:buster
1+
FROM balenalib/raspberry-pi-debian:bookworm
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG NODE_VERSION
@@ -20,14 +20,13 @@ RUN apt update && \
2020
liblzma-dev \
2121
libudev-dev \
2222
pkg-config \
23-
python \
23+
python3 \
2424
sudo \
2525
zlib1g-dev && \
2626
apt clean && \
2727
rm -rf /var/lib/apt/lists/* && \
2828
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
2929
bash -c "export NVM_DIR=\${HOME}/.nvm && \
3030
source \${NVM_DIR}/nvm.sh && \
31-
npm config -g set unsafe-perm true && \
3231
npm config -g set cache /tmp/.npm && \
3332
nvm cache clear"

toolchain/linux-arm64/node/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM arm64v8/debian:buster
1+
FROM arm64v8/debian:bookworm
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG NODE_VERSION
@@ -20,14 +20,13 @@ RUN apt update && \
2020
liblzma-dev \
2121
libudev-dev \
2222
pkg-config \
23-
python \
23+
python3 \
2424
sudo \
2525
zlib1g-dev && \
2626
apt clean && \
2727
rm -rf /var/lib/apt/lists/* && \
2828
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
2929
bash -c "export NVM_DIR=\${HOME}/.nvm && \
3030
source \${NVM_DIR}/nvm.sh && \
31-
npm config -g set unsafe-perm true && \
3231
npm config -g set cache /tmp/.npm && \
3332
nvm cache clear"

toolchain/linux-x64/node/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:buster
1+
FROM debian:bookworm
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG NODE_VERSION
@@ -20,14 +20,13 @@ RUN apt update && \
2020
liblzma-dev \
2121
libudev-dev \
2222
pkg-config \
23-
python \
23+
python3 \
2424
sudo \
2525
zlib1g-dev && \
2626
apt clean && \
2727
rm -rf /var/lib/apt/lists/* && \
2828
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
2929
bash -c "export NVM_DIR=\${HOME}/.nvm && \
3030
source \${NVM_DIR}/nvm.sh && \
31-
npm config -g set unsafe-perm true && \
3231
npm config -g set cache /tmp/.npm && \
3332
nvm cache clear"

0 commit comments

Comments
 (0)