Skip to content

Instantly share code, notes, and snippets.

@gorkem
Last active March 10, 2019 18:24
Show Gist options
  • Save gorkem/e5bf44570427158aa24198b90d6457f1 to your computer and use it in GitHub Desktop.
Save gorkem/e5bf44570427158aa24198b90d6457f1 to your computer and use it in GitHub Desktop.
penfold devfile
---
specVersion: 0.0.1
name: nodejs-rest-http
projects:
- name: node-rest
source:
type: git
location: "https://github.com/nodeshift-starters/nodejs-rest-http.git"
tools:
- name: theia-editor
type: cheEditor
id: org.eclipse.che.editor.theia:master
- name: exec-plugin
type: chePlugin
id: che-machine-exec-plugin:0.0.1
- name: typescript
type: chePlugin
id: ms-vscode.typescript:1.30.2
- name: node-runtime
type: dockerimage
image: eclipse/centos_nodejs
env:
- name: PORT
value: "8080"
endpoints:
- name: express-server
port: 8080
attributes:
protocol: http
secure: "true"
public: "true"
discoverable: "false"
memoryLimit: 256M
mountSources: true
commands:
- name: build
actions:
- type: exec
tool: node-runtime
command: npm install
workdir: /projects/node-rest
- name: run
actions:
- type: exec
tool: node-runtime
command: npm start
workdir: /projects/node-rest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment