File tree Expand file tree Collapse file tree 2 files changed +29
-33
lines changed
Expand file tree Collapse file tree 2 files changed +29
-33
lines changed Original file line number Diff line number Diff line change @@ -2,55 +2,26 @@ schemaVersion: 2.2.0
22metadata :
33 name : python
44 version : 1.0.0
5+ provider : Red Hat
6+ supportUrl : https://github.com/devfile-samples/devfile-support#support-information
57attributes :
68 alpha.dockerimage-port : 8081
79starterProjects :
810 - name : python-example
911 git :
1012 remotes :
1113 origin : https://github.com/odo-devfiles/python-ex
12- variables :
13- CONTAINER_IMAGE : python-image:latest
14- COMPONENT_NAME : my-python
15- PORT : " 8081"
1614components :
1715 - name : outerloop-build
18- attributes :
19- tool : console-import
2016 image :
21- imageName : " {{CONTAINER_IMAGE}} "
17+ imageName : python-image:latest
2218 dockerfile :
2319 uri : docker/Dockerfile
2420 buildContext : .
2521 rootRequired : false
2622 - name : outerloop-deploy
2723 kubernetes :
28- inlined : |
29- kind: Deployment
30- apiVersion: apps/v1
31- metadata:
32- name: {{COMPONENT_NAME}}
33- spec:
34- replicas: 1
35- selector:
36- matchLabels:
37- app: python-app
38- template:
39- metadata:
40- labels:
41- app: python-app
42- spec:
43- containers:
44- - name: {{COMPONENT_NAME}}
45- image: {{CONTAINER_IMAGE}}
46- ports:
47- - name: http
48- containerPort: {{PORT}}
49- protocol: TCP
50- resources:
51- limits:
52- memory: "128Mi"
53- cpu: "500m"
24+ uri : outerloop-deploy.yaml
5425 - name : py-web
5526 container :
5627 image : quay.io/eclipse/che-python-3.7:nightly
Original file line number Diff line number Diff line change 1+ kind : Deployment
2+ apiVersion : apps/v1
3+ metadata :
4+ name : my-python
5+ spec :
6+ replicas : 1
7+ selector :
8+ matchLabels :
9+ app : python-app
10+ template :
11+ metadata :
12+ labels :
13+ app : python-app
14+ spec :
15+ containers :
16+ - name : my-python
17+ image : python-image:latest
18+ ports :
19+ - name : http
20+ containerPort : 8081
21+ protocol : TCP
22+ resources :
23+ limits :
24+ memory : " 128Mi"
25+ cpu : " 500m"
You can’t perform that action at this time.
0 commit comments