-
Notifications
You must be signed in to change notification settings - Fork 1
/
devfile.yaml
36 lines (32 loc) · 998 Bytes
/
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
schemaVersion: 2.1.0
metadata:
name: common_criteria_demo
attributes:
controller.devfile.io/storage-type: ephemeral
projects:
- name: common_criteria_demo
git:
remotes:
origin: "https://github.com/ansible-middleware/common_criteria_demo.git"
components:
- name: tooling-container
container:
image: ghcr.io/ansible/ansible-workspace-env-reference:v24.6.3
memoryRequest: 256M
memoryLimit: 6Gi
cpuRequest: 250m
cpuLimit: 2000m
args: ['tail', '-f', '/dev/null']
env:
- name: 'ANSIBLE_COLLECTIONS_PATH'
value: '~/.ansible/collections:/usr/share/ansible/collections:/projects/ansible-devspaces-demo/collections'
commands:
- id: install-requirements
exec:
component: tooling-container
commandLine: "ansible-galaxy install -r requirements.yml"
workingDir: "${PROJECTS_ROOT}/common_criteria_demo"
label: Install required collections.
events:
postStart:
- "install-requirements"