-
Notifications
You must be signed in to change notification settings - Fork 1
/
devfile.yaml
84 lines (84 loc) · 1.89 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
commands:
- exec:
commandLine: pip install -r requirements.txt
component: python-39
group:
isDefault: true
kind: build
hotReloadCapable: false
workingDir: ${PROJECTS_ROOT}
id: install-python-requirements-file
- exec:
commandLine: ./runapp.sh
component: python-39
group:
isDefault: true
kind: run
hotReloadCapable: true
workingDir: ${PROJECTS_ROOT}
id: run
- exec:
commandLine: python3 ./runapp.py
component: python-39
group:
isDefault: true
kind: debug
hotReloadCapable: true
workingDir: ${PROJECTS_ROOT}
id: debug
components:
- container:
args:
- tail
- -f
- /dev/null
endpoints:
- exposure: internal
name: debug
secure: false
targetPort: 5679
- exposure: public
name: http-python
secure: false
targetPort: 5000
env:
- name: DEBUG_PORT
value: "5679"
- name: ODO_DEBUG
value: "true"
- name: APP_MODULE
value: runapp:app
- name: APP_CONFIG
value: ./gunicorn/gunicorn.conf.py
- name: FLASK_PORT
value: "5000"
- name: FLASK_HOST
value: 0.0.0.0
image: registry.access.redhat.com/ubi9/python-39:latest
mountSources: true
name: python-39
metadata:
architectures:
- amd64
description: Devfile to help deploy and debug a demo flask application
displayName: Python
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/python.svg
language: Python
name: testflask
projectType: Python
provider: Moyo
tags:
- Python
- Pip
- Flask
version: 3.0.0
website: https://github.com/MoOyeg/testFlask
schemaVersion: 2.2.0
variables:
APP_CONFIG: ./gunicorn/gunicorn.conf.py
APP_MODULE: runapp:app
APPLICATION_PORT: "5000"
DEBUG_PORT: "5679"
ODO_DEBUG: "true"
PYTHON_IMAGE: registry.access.redhat.com/ubi9/python-39:latest
RESOURCE_NAME: testflask