Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Add new nodejs-express stack
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rd committed Jun 19, 2019
1 parent cdcc741 commit 4d140f3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
38 changes: 38 additions & 0 deletions devfiles/nodejs/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
apiVersion: 1.0.0
metadata:
name: nodejs
projects:
-
name: nodejs-web-app
source:
type: git
location: "https://github.com/che-samples/web-nodejs-sample.git"
components:
-
type: chePlugin
id: che-incubator/typescript/latest
memoryLimit: 512Mi
-
type: dockerimage
alias: nodejs
image: registry.access.redhat.com/ubi8/nodejs-10
command: ['sleep']
args: ['infinity']
env:
- name: HOME
value: /home/user
- name: PS1
value: $(echo ${0})\\$
memoryLimit: 512Mi
endpoints:
- name: 'nodejs'
port: 3000
mountSources: true
commands:
-
name: run the web app
actions:
- type: exec
component: nodejs
command: cd ${CHE_PROJECTS_ROOT}/nodejs-web-app/app && nodemon app.js
6 changes: 6 additions & 0 deletions devfiles/nodejs/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
displayName: NodeJS Express Web Application
description: Default stack with NodeJS 10
tags: ["NodeJS", "Express", "Theia", "ubi8"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
globalMemoryLimit: 1686Mi

0 comments on commit 4d140f3

Please sign in to comment.