diff --git a/devfiles/nodejs/devfile.yaml b/devfiles/nodejs/devfile.yaml new file mode 100644 index 000000000..3ef215e5e --- /dev/null +++ b/devfiles/nodejs/devfile.yaml @@ -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 diff --git a/devfiles/nodejs/meta.yaml b/devfiles/nodejs/meta.yaml new file mode 100644 index 000000000..fc06d16f8 --- /dev/null +++ b/devfiles/nodejs/meta.yaml @@ -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