Repository navigation
Expand file tree
/
Copy pathoriginaldevfile.yaml
More file actions
88 lines (80 loc) · 2.42 KB
/
Copy pathoriginaldevfile.yaml
File metadata and controls
88 lines (80 loc) · 2.42 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
schemaVersion: 2.2.2
metadata:
name: python
displayName: Python
description: "Python (version 3.9.x) is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together."
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/python.svg
tags:
- Python
- Pip
projectType: Python
language: Python
provider: Red Hat
version: 2.2.0
projects:
- name: my-python-project
git:
remotes:
origin: https://github.com/KarahAllen/EclipseCheTest.git
components:
- name: py
container:
image: registry.access.redhat.com/ubi9/python-311
#39:1-1743091356
args: ['tail', '-f', '/dev/null']
mountSources: true
endpoints:
- name: https-python
targetPort: 8080
protocol: https
- exposure: none
name: debug
targetPort: 5858
env:
- name: DEBUG_PORT
value: '5858'
- name: MONGO_URI
value: "mongodb://151.1.2.209:27017/DO_NOT_SELECT_TEST_ONLY"
- name: POSTGRES_HOST
value: "151.1.2.209"
- name: POSTGRES_DB
value: "EclipseCheTest"
- name: POSTGRES_USER
value: "postgres"
- name: POSTGRES_PASSWORD
value: "project45"
- name: POSTGRES_PORT
value: "5432"
commands:
#- id: create-venv
# exec:
# component: py
# commandLine: "python -m venv .venv"
# workingDir: ${PROJECT_SOURCE}
# - id: activate-venv
# exec:
# component: py
# commandLine: "source .venv/bin/activate"
# workingDir: ${PROJECT_SOURCE}
# - id: pip-install-requirements
# exec:
# commandLine: "pip install -r requirements.txt"
# workingDir: ${PROJECT_SOURCE}
# component: py
#- id: setup-env
# composite:
# commands:
# - create-venv
# - activate-venv
# - pip-install-requirements
# group:
# kind: run
# isDefault: true
- id: debug-py
exec:
commandLine: 'pip install debugpy && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} pythonChart.py'
workingDir: ${PROJECT_SOURCE}
component: py
group:
kind: debug