Skip to content

Commit

Permalink
Update nodejs imagestreams (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
phracek committed Aug 5, 2024
1 parent 9e4fc15 commit d19695c
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description: |-
This content is experimental, do not use it in production. Build and run NodeJS applications on UBI.
For more information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/20/README.md.
annotations:
charts.openshift.io/provider: Red Hat
charts.openshift.io/providerType: redhat
charts.openshift.io/name: Red Hat NodeJS applications on UBI (experimental)
apiVersion: v2
appVersion: 0.0.5
kubeVersion: '>=1.20.0'
name: redhat-nodejs-imagestreams
tags: builder,nodejs
sources:
- https://github.com/sclorg/helm-charts
version: 0.0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# NodeJS imagestream helm chart

A Helm chart for importing NodeJS imagestreams on OpenShift.

For more information about helm charts see the official [Helm Charts Documentation](https://helm.sh/).

You need to have access to a cluster for each operation with OpenShift 4, like deploying and testing.
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
---
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: nodejs
annotations:
openshift.io/display-name: Node.js
spec:
tags:
- name: latest
annotations:
openshift.io/display-name: Node.js (Latest)
openshift.io/provider-display-name: Red Hat, Inc.
description: |-
Build and run Node.js applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/16/README.md.
WARNING: By selecting this tag, your application will automatically update to use the latest version of Node.js available on OpenShift, including major version updates.
iconClass: icon-nodejs
tags: builder,nodejs
supports: nodejs
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: ImageStreamTag
name: 20-ubi8
referencePolicy:
type: Local
- name: 20-ubi9
annotations:
openshift.io/display-name: Node.js 20 (UBI 9)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 20 applications on UBI 9. For more information
about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/20/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '20'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi9/nodejs-20:latest
referencePolicy:
type: Local
- name: 18-ubi9
annotations:
openshift.io/display-name: Node.js 18 (UBI 9)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 18 applications on UBI 9. For more information
about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/18/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '18'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi9/nodejs-18:latest
referencePolicy:
type: Local
- name: 20-ubi9-minimal
annotations:
openshift.io/display-name: Node.js 20 (UBI 9 Minimal)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 20 applications on UBI 9 Minimal. For more
information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/20-minimal/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '20'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi9/nodejs-20-minimal:latest
referencePolicy:
type: Local
- name: 18-ubi9-minimal
annotations:
openshift.io/display-name: Node.js 18 (UBI 9 Minimal)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 18 applications on UBI 9 Minimal. For more
information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/18-minimal/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '18'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi9/nodejs-18-minimal:latest
referencePolicy:
type: Local
- name: 20-ubi8
annotations:
openshift.io/display-name: Node.js 20 (UBI 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 20 applications on UBI 8. For more information
about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/20/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '20'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi8/nodejs-20:latest
referencePolicy:
type: Local
- name: 18-ubi8
annotations:
openshift.io/display-name: Node.js 18 (UBI 8)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 18 applications on UBI 8. For more information
about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/18/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '18'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi8/nodejs-18:latest
referencePolicy:
type: Local
- name: 20-ubi8-minimal
annotations:
openshift.io/display-name: Node.js 20 (UBI 8 Minimal)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 20 applications on UBI 8 Minimal. For more
information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/20-minimal/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '20'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi8/nodejs-20-minimal:latest
referencePolicy:
type: Local
- name: 18-ubi8-minimal
annotations:
openshift.io/display-name: Node.js 18 (UBI 8 Minimal)
openshift.io/provider-display-name: Red Hat, Inc.
description: Build and run Node.js 18 applications on UBI 8 Minimal. For more
information about using this builder image, including OpenShift considerations,
see https://github.com/sclorg/s2i-nodejs-container/blob/master/18-minimal/README.md.
iconClass: icon-nodejs
tags: builder,nodejs
version: '18'
sampleRepo: https://github.com/sclorg/nodejs-ex.git
from:
kind: DockerImage
name: registry.redhat.io/ubi8/nodejs-18-minimal:latest
referencePolicy:
type: Local
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-connection-test"
namespace: "{{ .Release.Namespace }}"
annotations:
"helm.sh/hook": test
spec:
#serviceAccount: {{ .Values.serviceAccount }}
containers:
- name: "nodejs-imagestream-test"
image: "registry.access.redhat.com/ubi8/nodejs-20"
imagePullPolicy: IfNotPresent
command:
- '/bin/bash'
- '-ec'
- >
node -v
lookupPolicy:
local: true
restartPolicy: Never
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"namespace": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
namespace: openshift

0 comments on commit d19695c

Please sign in to comment.