Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Node.js Runtime stack #403

Merged
merged 1 commit into from
Jun 5, 2024
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
68 changes: 68 additions & 0 deletions stacks/nodejs/2.2.1/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
schemaVersion: 2.2.2
metadata:
name: nodejs
displayName: Node.js Runtime
description: Node.js 18 application
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/node-js.svg
tags:
- Node.js
- Express
- ubi8
projectType: Node.js
language: JavaScript
version: 2.2.1
starterProjects:
- name: nodejs-starter
git:
remotes:
origin: 'https://github.com/odo-devfiles/nodejs-ex.git'
components:
- name: runtime
container:
image: registry.access.redhat.com/ubi8/nodejs-18:1-32
args: ['tail', '-f', '/dev/null']
memoryLimit: 1024Mi
mountSources: true
env:
- name: DEBUG_PORT
value: '5858'
endpoints:
- name: https-node
targetPort: 3000
protocol: https
- exposure: none
name: debug
targetPort: 5858
commands:
- id: install
exec:
component: runtime
commandLine: npm install
workingDir: ${PROJECT_SOURCE}
group:
kind: build
isDefault: true
- id: run
exec:
component: runtime
commandLine: npm start
workingDir: ${PROJECT_SOURCE}
group:
kind: run
isDefault: true
- id: debug
exec:
component: runtime
commandLine: npm run debug
workingDir: ${PROJECT_SOURCE}
group:
kind: debug
isDefault: true
- id: test
exec:
component: runtime
commandLine: npm test
workingDir: ${PROJECT_SOURCE}
group:
kind: test
isDefault: true
1 change: 1 addition & 0 deletions stacks/nodejs/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main
versions:
- version: 2.1.1
- version: 2.2.0
- version: 2.2.1
default: true # should have one and only one default version
Loading