-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdevfile.yaml
More file actions
69 lines (69 loc) · 1.81 KB
/
devfile.yaml
File metadata and controls
69 lines (69 loc) · 1.81 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
---
schemaVersion: 2.2.0
attributes:
controller.devfile.io/storage-type: per-workspace
metadata:
name: ansible-devspaces
components:
- name: dev-tools
container:
# image: quay.io/jpullen0/ansible-devspaces-nested-podman:opencode
image: quay.io/cgruver0/che/ansible-dev-tools:systemd
cpuLimit: 4000m
cpuRequest: 250m
memoryRequest: 128Mi
memoryLimit: 8Gi
env:
- name: HOME
value: /projects/home
- name: VSCODE_DEFAULT_WORKSPACE
value: ${PROJECT_SOURCE}/.code-workspace
- name: prep-workspace
container:
args:
- -c
- >-
mkdir -p /projects/bin && cp /usr/bin/oc /projects/bin/oc && cp /usr/bin/kubectl /projects/bin/kubectl && if [[ -f ${HOME}/.kube/config ]]; then rm ${HOME}/.kube/config;
fi
command:
- /bin/bash
image: registry.redhat.io/openshift4/ose-cli:latest
mountSources: true
sourceMapping: /projects
memoryRequest: 128Mi
memoryLimit: 256Mi
cpuRequest: 10m
cpuLimit: 200m
env:
- name: HOME
value: /projects/home
- name: prep-python-venv
container:
image: quay.io/cgruver0/che/ansible-dev-tools:systemd
sourceMapping: /projects
memoryRequest: 128Mi
memoryLimit: 1Gi
cpuRequest: 10m
cpuLimit: 200m
mountSources: true
args:
- '-c'
- '${PROJECT_SOURCE}/.workspace-init/init-python-venv.sh'
command:
- /bin/bash
env:
- name: HOME
value: /projects/home
commands:
- apply:
component: prep-workspace
label: Pre Start Prep
id: prep-workspace
- apply:
component: prep-python-venv
label: Pre Start Python Prep
id: prep-python-venv
events:
preStart:
- prep-workspace
- prep-python-venv