Last active
March 10, 2019 18:24
-
-
Save gorkem/e5bf44570427158aa24198b90d6457f1 to your computer and use it in GitHub Desktop.
penfold devfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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