File tree Expand file tree Collapse file tree 1 file changed +40
-11
lines changed
Expand file tree Collapse file tree 1 file changed +40
-11
lines changed Original file line number Diff line number Diff line change 1- schemaVersion : 2.0 .0
1+ schemaVersion : 2.2 .0
22metadata :
33 name : python
44 version : 1.0.0
5- attributes :
6- alpha.build-context : .
7- alpha.build-dockerfile : docker/Dockerfile
85starterProjects :
96 - name : python-example
107 git :
118 remotes :
129 origin : https://github.com/odo-devfiles/python-ex
10+ variables :
11+ CONTAINER_IMAGE : python-image:latest
12+ COMPONENT_NAME : my-python
13+ PORT : " 8081"
1314components :
14- - name : buildguidance
15+ - name : outerloop-build
1516 attributes :
1617 tool : console-import
17- container :
18- image : buildguidanceimage-placeholder
19- memoryLimit : 1024Mi
20- endpoints :
21- - name : http-8081
22- targetPort : 8081
18+ image :
19+ imageName : " {{CONTAINER_IMAGE}}"
20+ dockerfile :
21+ uri : docker/Dockerfile
22+ buildContext : .
23+ rootRequired : false
24+ - name : outerloop-deploy
25+ kubernetes :
26+ inlined : |
27+ kind: Deployment
28+ apiVersion: apps/v1
29+ metadata:
30+ name: {{COMPONENT_NAME}}
31+ spec:
32+ replicas: 1
33+ selector:
34+ matchLabels:
35+ app: node-app
36+ template:
37+ metadata:
38+ labels:
39+ app: node-app
40+ spec:
41+ containers:
42+ - name: {{COMPONENT_NAME}}
43+ image: {{CONTAINER_IMAGE}}
44+ ports:
45+ - name: http
46+ containerPort: {{PORT}}
47+ protocol: TCP
48+ resources:
49+ limits:
50+ memory: "128Mi"
51+ cpu: "500m"
2352 - name : py-web
2453 container :
2554 image : quay.io/eclipse/che-python-3.7:nightly
You can’t perform that action at this time.
0 commit comments