Skip to content

Commit e974940

Browse files
authored
Merge pull request #2 from yangcao77/main
reference parent stack
2 parents 0c840c9 + be271f5 commit e974940

File tree

1 file changed

+3
-34
lines changed

1 file changed

+3
-34
lines changed

devfile.yaml

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ metadata:
66
supportUrl: https://github.com/devfile-samples/devfile-support#support-information
77
attributes:
88
alpha.dockerimage-port: 8081
9-
starterProjects:
10-
- name: python-example
11-
git:
12-
remotes:
13-
origin: https://github.com/odo-devfiles/python-ex
9+
parent:
10+
id: python
11+
registryUrl: "https://registry.devfile.io"
1412
components:
1513
- name: outerloop-build
1614
image:
@@ -22,36 +20,7 @@ components:
2220
- name: outerloop-deploy
2321
kubernetes:
2422
uri: outerloop-deploy.yaml
25-
- name: py-web
26-
container:
27-
image: quay.io/eclipse/che-python-3.7:nightly
28-
mountSources: true
29-
endpoints:
30-
- name: web
31-
targetPort: 8080
3223
commands:
33-
- id: pip-install-requirements
34-
exec:
35-
commandLine: pip install --user -r requirements.txt
36-
group:
37-
kind: build
38-
isDefault: true
39-
component: py-web
40-
- id: run-app
41-
exec:
42-
commandLine: "python app.py"
43-
workingDir: ${PROJECTS_ROOT}
44-
component: py-web
45-
group:
46-
kind: run
47-
isDefault: true
48-
- id: debugpy
49-
exec:
50-
commandLine: "pip install --user debugpy && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} app.py"
51-
workingDir: ${PROJECTS_ROOT}
52-
component: py-web
53-
group:
54-
kind: debug
5524
- id: build-image
5625
apply:
5726
component: outerloop-build

0 commit comments

Comments
 (0)