chore: add nodejs as a builder key (#1365)

The https://github.com/knative-sandbox/func-tastic repo uses "nodejs"
instead of "node" as the language runtime. This change makes it possible
for templates in the func-tastic language pack to work out of the box.

Signed-off-by: Lance Ball <lball@redhat.com>

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2022-10-20 13:16:12 -04:00 committed by GitHub
parent f5470c009c
commit 16a20844f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ const DefaultName = builders.Pack
var (
DefaultBuilderImages = map[string]string{
"node": "gcr.io/paketo-buildpacks/builder:base",
"nodejs": "gcr.io/paketo-buildpacks/builder:base",
"typescript": "gcr.io/paketo-buildpacks/builder:base",
"go": "gcr.io/paketo-buildpacks/builder:base",
"python": "gcr.io/paketo-buildpacks/builder:base",

View File

@ -36,6 +36,7 @@ const DefaultName = builders.S2I
// DefaultBuilderImages for s2i builders indexed by Runtime Language
var DefaultBuilderImages = map[string]string{
"node": "registry.access.redhat.com/ubi8/nodejs-16",
"nodejs": "registry.access.redhat.com/ubi8/nodejs-16",
"typescript": "registry.access.redhat.com/ubi8/nodejs-16",
"quarkus": "registry.access.redhat.com/ubi8/openjdk-17",
}