Commit 8a726fb
authored
Upgrade Node.js to v20.19.6 for AL2023 builder-base (#1894)
This upgrades Node.js from v16.18.1 to v20.19.6 for Amazon Linux 2023
builder-base variant, while keeping v16.18.1 for AL2 for backward compatibility.
GLIBC Compatibility:
- Node.js v18/v20 require GLIBC >= 2.28 (per official Node.js docs)
- Amazon Linux 2: GLIBC 2.26 (incompatible - too old)
- Amazon Linux 2023: GLIBC 2.34 (compatible)
Changes:
- Added NODEJS_VERSION_AL23: v20.19.6 in versions.yaml
- Kept NODEJS_VERSION: v16.18.1 for AL2 (no change)
- Updated Dockerfile nodejs stage to pass AL_TAG and both version vars
- Updated install_nodejs.sh to select version based on IS_AL23 flag
- Added nodejs-al23-{amd64,arm64}-checksum for v20.19.6
- AL2 checksums unchanged (still v16.18.1)
Pattern follows existing skopeo approach (SKOPEO_VERSION / SKOPEO_VERSION_AL23).
Impact:
- Only 2 projects use Node.js: Prometheus and generate-attribution
- AL2 projects: No change (continue using Node v16)
- Prometheus v3.8.0: Will use AL2023 variant with Node v20
Motivation:
- Prometheus v3.8.0 requires Node.js 18+ for mantine-ui build
- Node.js v16 reached EOL September 20231 parent 7d368f7 commit 8a726fb
5 files changed
Lines changed: 16 additions & 2 deletions
File tree
- builder-base
- checksums
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments