-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevfile.yaml
58 lines (58 loc) · 1.39 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
schemaVersion: 2.0.0
metadata:
name: python
version: 1.0.0
attributes:
alpha.build-context: .
alpha.build-dockerfile: docker/Dockerfile
starterProjects:
- name: python-example
git:
remotes:
origin: https://github.com/odo-devfiles/python-ex
components:
- name: buildguidance
attributes:
tool: console-import
container:
image: buildguidanceimage-placeholder
memoryLimit: 1024Mi
endpoints:
- name: http-8081
targetPort: 8081
- name: py-web
container:
image: quay.io/eclipse/che-python-3.7:nightly
mountSources: true
endpoints:
- name: web
targetPort: 8080
env:
- name: BUCKET_NAME
valueFrom:
secretKeyRef:
name: physrisk-hazard
key: BUCKET_NAME
commands:
- id: pip-install-requirements
exec:
commandLine: pip install --user -r requirements.txt
group:
kind: build
isDefault: true
component: py-web
- id: run-app
exec:
commandLine: "python app.py"
workingDir: ${PROJECTS_ROOT}
component: py-web
group:
kind: run
isDefault: true
- id: debugpy
exec:
commandLine: "pip install --user debugpy && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} app.py"
workingDir: ${PROJECTS_ROOT}
component: py-web
group:
kind: debug