-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevfile.yaml
43 lines (42 loc) · 1.06 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
apiVersion: 1.0.0
metadata:
name: frontend-
projects:
- name: quotegen-frontend
source:
location: 'https://github.com/snowjet/quotegen-frontend.git'
type: git
branch: master
components:
- id: ms-python/python/latest
memoryLimit: 512Mi
preferences:
python.globalModuleInstallation: true
type: chePlugin
- mountSources: true
endpoints:
- name: web
port: 8080
attributes:
protocol: http
public: 'true'
discoverable: 'false'
memoryLimit: 512Mi
type: dockerimage
alias: python
image: 'quay.io/eclipse/che-python-3.7:nightly'
commands:
- name: setup deps
actions:
- type: exec
component: python
command: pip install --user -r requirements.txt
workdir: "${CHE_PROJECTS_ROOT}/quotegen-frontend/frontend"
- name: run-debug
actions:
- type: exec
component: python
command: >-
export LOG_LEVEL="DEBUG" &&
python app.py
workdir: "${CHE_PROJECTS_ROOT}/quotegen-frontend/frontend"