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

Add NodeJS stack with react realworld app #29

Merged
merged 3 commits into from
Jul 9, 2019
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
48 changes: 48 additions & 0 deletions devfiles/nodejs-react/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
apiVersion: 1.0.0
metadata:
name: react
projects:
-
name: react-redux-realworld-example-app
source:
type: git
location: "https://github.com/gothinkster/react-redux-realworld-example-app"
components:
-
type: chePlugin
id: che-incubator/typescript/latest
memoryLimit: 512Mi
-
type: dockerimage
alias: nodejs
# system limit for number of file watchers reached with
# image: registry.access.redhat.com/ubi8/nodejs-10
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this issue logged/tracked somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rhopp
No. Should issue be created in eclipse/che repo?

image: registry.centos.org/che-stacks/centos-nodejs
command: ['sleep']
args: ['infinity']
env:
- name: HOME
value: /tmp/user
- name: PS1
value: $(echo ${0})\\$
memoryLimit: 512Mi
endpoints:
- name: 'nodejs'
port: 4100
mountSources: true
commands:
-
name: install all required dependencies
actions:
- type: exec
component: nodejs
command: npm install
workdir: ${CHE_PROJECTS_ROOT}/react-redux-realworld-example-app
-
name: start the local server
actions:
- type: exec
component: nodejs
command: npm start
workdir: ${CHE_PROJECTS_ROOT}/react-redux-realworld-example-app
6 changes: 6 additions & 0 deletions devfiles/nodejs-react/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
displayName: NodeJS React Web Application
description: Stack for developing NodeJS React Web Application
tags: ["NodeJS", "React", "Redux", "RealWorld"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
globalMemoryLimit: 1686Mi