-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevfile.yaml
111 lines (111 loc) · 2.88 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
schemaVersion: 2.2.0
metadata:
name: pelorus-workspace
projects:
- name: pelorus
git:
checkoutFrom:
remote: upstream
revision: main
remotes:
upstream: https://github.com/dora-metrics/pelorus.git
- name: pelorus-api
git:
checkoutFrom:
remote: upstream
revision: main
remotes:
upstream: https://github.com/dora-metrics/pelorus-api.git
- name: pelorus-ui
git:
checkoutFrom:
remote: upstream
revision: main
remotes:
upstream: https://github.com/dora-metrics/pelorus-ui.git
- name: dev-workspace
git:
checkoutFrom:
remote: upstream
revision: main
remotes:
upstream: https://github.com/dora-metrics/dev-workspace.git
components:
- name: dev-tools
container:
image: quay.io/redhat-cop/devspaces-java21-node20-python311
memoryLimit: 6Gi
mountSources: true
env:
- name: SHELL
value: "/bin/zsh"
- name: HISTFILE
value: "/projects/home/.sh_history"
- name: VSCODE_DEFAULT_WORKSPACE
value: "/projects/dev-workspace/pelorus.code-workspace"
volumeMounts:
- name: m2
path: /home/user/.m2
- name: npm
path: /home/user/.npm
endpoints:
- exposure: public
protocol: https
name: pelorus-metrics
targetPort: 3000
- exposure: public
protocol: https
name: pelorus-api
targetPort: 8080
- exposure: internal
protocol: https
name: quarkus-debug
targetPort: 5005
- volume:
size: 10Gi
name: projects
- volume:
size: 2Gi
name: m2
- volume:
size: 2Gi
name: npm
- 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
commands:
- apply:
component: oc-cli
label: Copy OpenShift CLI
id: cp-oc-cli
- exec:
commandLine: ". ${PROJECTS_ROOT}/env-tmp/set-env.sh ; export NODE_EXTRA_CA_CERTS=/tmp/node-extra-certificates/ca.crt ; npm run dev"
component: dev-tools
workingDir: "${PROJECTS_ROOT}/pelorus-ui"
label: "Pelorus UI Dev Mode"
id: dev-intel-run
- exec:
commandLine: ". ${PROJECTS_ROOT}/env-tmp/set-env.sh ; quarkus dev -Dquarkus.analytics.disabled=true -Dquarkus.tls.trust-all=true -Dquarkus.http.host=0.0.0.0"
component: dev-tools
workingDir: "${PROJECTS_ROOT}/pelorus-api"
label: "Pelorus API Dev Mode"
id: pelorus-api-run
- exec:
commandLine: "nohup ./dev-init/env-init.sh > ${PROJECTS_ROOT}/env-init.log 2>&1 &"
component: dev-tools
workingDir: "${PROJECTS_ROOT}/dev-workspace"
id: init-env
events:
preStart:
- cp-oc-cli
postStart:
- init-env