-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
65 lines (64 loc) · 1.54 KB
/
devfile.yaml
File metadata and controls
65 lines (64 loc) · 1.54 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
schemaVersion: 2.2.2
metadata:
name: workshop-module4-python
version: 1.0.0
description: DevSpaces workspace for Python app
attributes:
che-editor: vscode
components:
- container:
args:
- tail
- -f
- /dev/null
endpoints:
- name: https-py-5000
protocol: https
targetPort: 5000
- name: https-py-5001
protocol: https
targetPort: 5001
- exposure: none
name: debug
targetPort: 5858
env:
- name: DEBUG_PORT
value: "5858"
- name: countryCode
value: "en"
image: image-registry.openshift-image-registry.svc.cluster.local:5000/openshift/devspaces-dotnet-python:latest
mountSources: true
name: py
commands:
- exec:
commandLine: pip install -r requirements.txt
component: py
group:
isDefault: true
kind: build
workingDir: ${PROJECT_SOURCE}/hello-world-v1
id: pip-install-requirements-hello-world-v1
- exec:
commandLine: flask run --host=0.0.0.0 --port=5000
component: py
group:
isDefault: true
kind: run
workingDir: ${PROJECT_SOURCE}/hello-world-v1
id: run-python-hello-world-v1
- exec:
commandLine: pip install -r requirements.txt
component: py
group:
isDefault: true
kind: build
workingDir: ${PROJECT_SOURCE}/hello-world-v2
id: pip-install-requirements-hello-world-v2
- exec:
commandLine: flask run --host=0.0.0.0 --port=5001
component: py
group:
isDefault: true
kind: run
workingDir: ${PROJECT_SOURCE}/hello-world-v2
id: run-python-hello-world-v2