forked from yangcao77/web-coolstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile_odo.yaml
51 lines (51 loc) · 1.52 KB
/
devfile_odo.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
43
44
45
46
47
48
49
50
51
schemaVersion: 2.1.0
metadata:
name: web-coolstore
# attributes:
# .vscode/extensions.json: |
# {
# "recommendations": [
# "redhat.vscode-openshift-connector"
# ]
# }
projects:
- name: web-coolstore
git:
remotes:
origin: 'https://github.com/yangcao77/cloud-native-workshop.git'
checkoutFrom:
remote: origin
revision: 'completed-sample'
components:
- container:
image: docker.io/yangcao77/coolstore
memoryLimit: 2048Mi
sourceMapping: /projects
volumeMounts:
- name: kube
path: /home/theia/.kube
name: web-coolstore
- name: kube
volume:
size: 1024Mi
commands:
- id: start-catalog
exec:
component: web-coolstore
commandLine: cd ${PROJECTS_SOURCE}/web-coolstore/catalog-spring-boot && ./deploy.sh ${DEVWORKSPACE_NAMESPACE}
- id: start-inventory
exec:
component: web-coolstore
commandLine: cd ${PROJECTS_SOURCE}/web-coolstore/inventory-quarkus && ./deploy.sh ${DEVWORKSPACE_NAMESPACE}
- id: start-gateway
exec:
component: web-coolstore
commandLine: cd ${PROJECTS_SOURCE}/web-coolstore/gateway-vertx && ./deploy.sh ${DEVWORKSPACE_NAMESPACE}
- id: start-webui
exec:
component: web-coolstore
commandLine: cd ${PROJECTS_SOURCE}/web-coolstore/web-nodejs && ./deploy.sh ${DEVWORKSPACE_NAMESPACE}
- id: deploy-all
exec:
component: web-coolstore
commandLine: cd ${PROJECTS_SOURCE}/web-coolstore && ./deploy-all.sh ${DEVWORKSPACE_NAMESPACE}