forked from devspaces-samples/python-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevfile.yaml
More file actions
27 lines (27 loc) · 659 Bytes
/
devfile.yaml
File metadata and controls
27 lines (27 loc) · 659 Bytes
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
schemaVersion: 2.2.2
metadata:
name: python-hello-world
components:
- name: python
container:
image: registry.redhat.io/devspaces/udi-rhel9:3.20
volumeMounts:
- name: venv
path: /home/user/.venv
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '2'
cpuRequest: '1'
mountSources: true
- name: venv
volume:
size: 1G
commands:
- id: run
exec:
label: "Run the application"
component: python
workingDir: ${PROJECTS_ROOT}/python-hello-world
commandLine: python -m venv .venv && . .venv/bin/activate && python hello-world.py
group:
kind: run