-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevfile.yaml
More file actions
80 lines (80 loc) · 1.88 KB
/
devfile.yaml
File metadata and controls
80 lines (80 loc) · 1.88 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
schemaVersion: 2.3.0
metadata:
generateName: devfile-gui-wizard
version: 1.0.0
displayName: Devfile GUI Wizard
description: A React + Tailwind web application for creating devfile 2.3.0 YAML files
language: JavaScript
projectType: application
provider: Devfile Community
tags:
- devfile
- wizard
- react
- tailwind
- yaml-generator
website: https://devfile.io
attributes:
controller.devfile.io/storage-type: ephemeral
components:
- name: nodejs-dev
container:
image: quay.io/devfile/universal-developer-image:ubi10-latest
mountSources: true
sourceMapping: /projects
endpoints:
- name: dev-server
targetPort: 5173
protocol: http
exposure: public
env:
- name: NODE_ENV
value: development
memoryLimit: 2Gi
cpuLimit: 1000m
- name: node-modules
volume:
size: 1Gi
commands:
- id: install-dependencies
exec:
component: nodejs-dev
commandLine: npm install
workingDir: ${PROJECT_SOURCE}
group:
kind: build
- id: start-dev-server
exec:
component: nodejs-dev
commandLine: npm run dev
workingDir: ${PROJECT_SOURCE}
group:
kind: run
isDefault: true
- id: build-production
exec:
component: nodejs-dev
commandLine: npm run build
workingDir: ${PROJECT_SOURCE}
group:
kind: build
- id: preview-build
exec:
component: nodejs-dev
commandLine: npm run preview
workingDir: ${PROJECT_SOURCE}
group:
kind: run
- id: deploy
exec:
component: nodejs-dev
commandLine: kubectl apply -k openshift
workingDir: ${PROJECT_SOURCE}
- id: cleanup
exec:
component: nodejs-dev
commandLine: kubectl delete -k openshift
workingDir: ${PROJECT_SOURCE}
events:
postStart:
- install-dependencies