-
Notifications
You must be signed in to change notification settings - Fork 8
/
mta.yaml
114 lines (107 loc) · 3.43 KB
/
mta.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
## Generated mta.yaml based on template version 0.4.0
## appName = georel-graph
## language=nodejs; multitenant=false
## approuter=
_schema-version: '3.1'
ID: georel-graph
version: 2.0.0
description: "A simple CAP project."
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm install --production
- npx -p @sap/cds-dk cds build --production
modules:
# --------------------- SERVER MODULE ------------------------
- name: georel-graph-srv
# ------------------------------------------------------------
type: nodejs
path: gen/srv
parameters:
memory: 256M
buildpack: nodejs_buildpack
requires:
# Resources extracted from CAP configuration
- name: georel-graph-db
- name: georel-graph-uaa
- name: georel-graph-dest
- name: georel-graph-em
provides:
- name: srv-binding # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
# -------------------- SIDECAR MODULE ------------------------
- name: georel-graph-db-deployer
# ------------------------------------------------------------
type: hdb
path: gen/db
parameters:
memory: 256M
buildpack: nodejs_buildpack
requires:
# 'hana' and 'xsuaa' resources extracted from CAP configuration
- name: georel-graph-db
- name: georel-graph-uaa
# -------------------- UI MODULE ------------------------
- name: geo-customer-ui
# ------------------------------------------------------------
type: html5
path: app/geo-customer
parameters:
disk-quota: 1024MB
memory: 128MB
buildpack: nodejs_buildpack
build-parameters:
builder: npm
# commands:
# - npm run-script build
requires:
- name: georel-graph-dest # <-- Destination Service
- name: georel-graph-uaa # <-- User Authentication and Authorization
- name: srv-binding
group: destinations
properties:
forwardAuthToken: true
name: srv-binding
url: '~{srv-url}'
resources:
# services extracted from CAP configuration
# 'service-plan' can be configured via 'cds.requires.<name>.vcap.plan'
# ------------------------------------------------------------
- name: georel-graph-db
# ------------------------------------------------------------
type: com.sap.xs.hdi-container
parameters:
service: hana # or 'hanatrial' on trial landscapes
service-plan: hdi-shared
properties:
hdi-service-name: ${service-name}
# ------------------------------------------------------------
- name: georel-graph-uaa
# ------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
path: ./xs-security.json
service: xsuaa
service-plan: application
config:
xsappname: georel-graph-${space} # name + space dependency
tenant-mode: dedicated
# -----Destination Service -----------------------------------
- name: georel-graph-dest
# ------------------------------------------------------------
parameters:
service: destination
service-plan: lite
type: org.cloudfoundry.managed-service
# -----Event Mesh Service -----------------------------------
- name: georel-graph-em
# ------------------------------------------------------------
parameters:
path: ./em.json
service: enterprise-messaging
service-plan: default
type: org.cloudfoundry.managed-service