forked from redhat-developer/devfile-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
59 lines (59 loc) · 1.27 KB
/
devfile.yaml
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
schemaVersion: 2.0.0
metadata:
name: nodejs
version: 1.0.0
attributes:
alpha.build-context: src
alpha.build-dockerfile: Dockerfile
components:
- name: buildguidance
attributes:
tool: console-import
container:
image: buildguidanceimage-placeholder
memoryLimit: 1024Mi
endpoints:
- name: http-3001
targetPort: 3001
- name: runtime
container:
image: registry.access.redhat.com/ubi8/nodejs-12:1-45
memoryLimit: 1024Mi
mountSources: true
sourceMapping: /project
endpoints:
- name: http-3000
targetPort: 3000
commands:
- id: install
exec:
component: runtime
commandLine: npm install
workingDir: /project/src
group:
kind: build
isDefault: true
- id: run
exec:
component: runtime
commandLine: npm start
workingDir: /project/src
group:
kind: run
isDefault: true
- id: debug
exec:
component: runtime
commandLine: npm run debug
workingDir: /project/src
group:
kind: debug
isDefault: true
- id: test
exec:
component: runtime
commandLine: npm test
workingDir: /project/src
group:
kind: test
isDefault: true