-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdevfile.yaml
More file actions
60 lines (60 loc) · 1.63 KB
/
devfile.yaml
File metadata and controls
60 lines (60 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
metadata:
name: product-catalog-client
projects:
- name: product-catalog-client
source:
location: 'https://github.com/gnunn-gitops/product-catalog-client.git'
type: 'git'
components:
- id: che-incubator/typescript/latest
memoryLimit: 512Mi
type: chePlugin
- id: ms-vscode/node-debug2/latest
type: chePlugin
- mountSources: true
endpoints:
- name: nodejs
port: 9000
memoryLimit: 512Mi
type: dockerimage
image: >-
registry.redhat.io/codeready-workspaces/plugin-java8-rhel8:latest
alias: nodejs
apiVersion: 1.0.0
commands:
- name: Install
actions:
- workdir: '${CHE_PROJECTS_ROOT}/product-catalog-client'
type: exec
command: npm install
component: nodejs
- name: Run (and install)
actions:
- workdir: '${CHE_PROJECTS_ROOT}/product-catalog-client'
type: exec
command: npm install; npm dev
component: nodejs
- name: Run (Interactive dev)
actions:
- workdir: '${CHE_PROJECTS_ROOT}/product-catalog-client'
type: exec
command: npm install; npm start
component: nodejs
- name: Attach remote debugger
actions:
- referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to Remote",
"address": "localhost",
"port": 9229,
"localRoot": "${workspaceFolder}",
"remoteRoot": "${workspaceFolder}"
}
]
}
type: vscode-launch