-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
80 lines (80 loc) · 1.85 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
schemaVersion: 2.2.0
metadata:
name: devspaces-backstage-plugin
projects:
- name: devspaces-backstage-plugin
git:
checkoutFrom:
remote: origin
revision: main
remotes:
origin: https://github.com/cgruver/devspaces-backstage-plugin.git
components:
- name: dev-tools
container:
image: quay.io/cgruver0/che/node20-dev-tools:latest
mountSources: true
memoryRequest: 500Mi
memoryLimit: 6G
cpuRequest: 100m
cpuLimit: 2000m
env:
- name: VSCODE_DEFAULT_WORKSPACE
value: /projects/devspaces-backstage-plugin/workspace.code-workspace
- name: HOME
value: "/projects/home"
endpoints:
- name: frontend
protocol: https
targetPort: 3000
exposure: public
- name: backend
protocol: https
targetPort: 7007
exposure: public
- volume:
size: 20Gi
name: projects
- name: oc-cli
container:
args:
- '-c'
- >-
mkdir -p /projects/bin && cp /usr/bin/oc /projects/bin/oc && cp /usr/bin/kubectl /projects/bin/kubectl
command:
- /bin/bash
image: image-registry.openshift-image-registry.svc:5000/openshift/cli:latest
sourceMapping: /projects
mountSources: true
memoryLimit: 256M
- name: prep-workspace
container:
image: quay.io/cgruver0/che/node20-dev-tools:latest
mountSources: true
sourceMapping: /projects
memoryRequest: 128Mi
memoryLimit: 256Mi
cpuRequest: 10m
cpuLimit: 200m
env:
- name: HOME
value: "/projects/home"
args:
- '-c'
- >-
if [[ -f ${HOME}/.kube/config ]]; then rm ${HOME}/.kube/config; fi
command:
- /bin/bash
commands:
- apply:
component: oc-cli
label: Copy OpenShift CLI
id: cp-oc-cli
- apply:
component: prep-workspace
label: Prestart Workspace Prep
id: prep-workspace
events:
preStart:
- cp-oc-cli
- prep-workspace