Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ NODEJS_VERSIONS = [
"14",
"16",
"18",
"20",
]

NODEJS_VARIATIONS = [
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The following images are currently published and updated by the distroless proje
| gcr.io/distroless/nodejs14-debian11 | latest, nonroot, debug, debug-nonroot |
| gcr.io/distroless/nodejs16-debian11 | latest, nonroot, debug, debug-nonroot |
| gcr.io/distroless/nodejs18-debian11 | latest, nonroot, debug, debug-nonroot |
| gcr.io/distroless/nodejs20-debian11 | latest, nonroot, debug, debug-nonroot |

Any other tags are considered deprecated and are no longer updated

Expand Down Expand Up @@ -104,6 +105,7 @@ Follow these steps to get started:
* [gcr.io/distroless/nodejs14-debian11](nodejs/README.md)
* [gcr.io/distroless/nodejs16-debian11](nodejs/README.md)
* [gcr.io/distroless/nodejs18-debian11](nodejs/README.md)
* [gcr.io/distroless/nodejs20-debian11](nodejs/README.md)

* The following images are also published on `gcr.io`, but are considered experimental and not recommended for production usage:
* [gcr.io/distroless/python3-debian11](experimental/python3/README.md)
Expand Down
2 changes: 1 addition & 1 deletion SUPPORT_POLICY.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The current estimation of end of life for images with the pattern:
Java will only support current LTS version distributed by debian [see here](https://wiki.debian.org/Java).

### Node
Node version support is for even numbered releases (14, 16, 18, etc) that are current, active or in LTS maintenance. For more information, [see here](https://nodejs.org/en/about/releases/).
Node version support is for even numbered releases (14, 16, 18, 20, etc) that are current, active or in LTS maintenance. For more information, [see here](https://nodejs.org/en/about/releases/).

### Python
Python support is experimental, and this project does not make any guarantees about the version of python in images.
Expand Down
20 changes: 20 additions & 0 deletions node_archives.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ def repositories():
control = "//nodejs:control",
)

node_archive(
name = "nodejs20_amd64",
sha256 = "95439a0a836fc858565c7b6a7b1e55d1741901e6f205485e496abbefe973cfce",
strip_prefix = "node-v20.0.0-linux-x64/",
urls = ["https://nodejs.org/dist/v20.0.0/node-v20.0.0-linux-x64.tar.gz"],
version = "20.0.0",
architecture = "amd64",
control = "//nodejs:control",
)

node_archive(
name = "nodejs14_arm64",
sha256 = "044b7ec3fea04cd3815d26901ee37203dcc942688b72ee6eac96f6a1ca3cc63f",
Expand Down Expand Up @@ -62,3 +72,13 @@ def repositories():
architecture = "arm64",
control = "//nodejs:control",
)

node_archive(
name = "nodejs20_arm64",
sha256 = "997ddc7ca941280aeb357d4ad40ea7f93cb4d7989b93056dbf1b42a1a89b449b",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hrmm these checksums appear to be wrong, I don't know why CI didn't pick this up?

strip_prefix = "node-v20.0.0-linux-arm64/",
urls = ["https://nodejs.org/dist/v20.0.0/node-v20.0.0-linux-arm64.tar.gz"],
version = "20.0.0",
architecture = "arm64",
control = "//nodejs:control",
)
2 changes: 1 addition & 1 deletion nodejs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load("@rules_pkg//:pkg.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])

NODEJS_MAJOR_VERISONS = ("14", "16", "18")
NODEJS_MAJOR_VERISONS = ("14", "16", "18", "20")

MODE = [
"",
Expand Down
1 change: 1 addition & 0 deletions nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Specifically, these images contain everything in the [base image](../base/README
- Node.js v14 (`gcr.io/distroless/nodejs14-debian11`) and its dependencies.
- Node.js v16 (`gcr.io/distroless/nodejs16-debian11`) and its dependencies.
- Node.js v18 (`gcr.io/distroless/nodejs18-debian11`) and its dependencies.
- Node.js v20 (`gcr.io/distroless/nodejs20-debian11`) and its dependencies.

## Usage

Expand Down
6 changes: 6 additions & 0 deletions nodejs/testdata/nodejs20.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
schemaVersion: "2.0.0"
commandTests:
- name: nodejs
command: "/nodejs/bin/node"
args: ["--version"]
expectedOutput: ["v20.0.0"]