-
Notifications
You must be signed in to change notification settings - Fork 12
/
devfile.yaml
53 lines (49 loc) · 1.22 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
schemaVersion: 2.2.2
metadata:
name: react-web-app
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
endpoints:
- exposure: public
name: nodejs
protocol: https
targetPort: 3000
memoryLimit: 1G
mountSources: true
commands:
- id: install-dependencies
exec:
label: "Install all required dependencies"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "yarn install"
group:
kind: build
isDefault: true
- id: build
exec:
label: "Build the app"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "NODE_OPTIONS=--openssl-legacy-provider yarn build"
group:
kind: build
isDefault: true
- id: run
exec:
label: "Run the web app"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "NODE_OPTIONS=--openssl-legacy-provider yarn start"
group:
kind: run
- id: test
exec:
label: "Launch tests"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "NODE_OPTIONS=--openssl-legacy-provider yarn test"
group:
kind: test