-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
46 lines (45 loc) · 1.04 KB
/
devfile.yaml
File metadata and controls
46 lines (45 loc) · 1.04 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
schemaVersion: 2.2.2
metadata:
name: workshop-module2-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-python
protocol: https
targetPort: 5000
- exposure: none
name: debug
targetPort: 5858
env:
- name: ADMIN
value: "http://opensesame.shared-config.svc.cluster.local:3000/opensesame"
- name: DEBUG_PORT
value: "5858"
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}
id: pip-install-requirements
- exec:
commandLine: flask run --host=0.0.0.0 --port=5000
component: py
group:
isDefault: true
kind: run
workingDir: ${PROJECT_SOURCE}
id: run-python