-
Notifications
You must be signed in to change notification settings - Fork 46
/
mta.yaml
134 lines (123 loc) · 4.25 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
## Generated mta.yaml based on template version 0.2.0
## appName = hana-opensap-cloud-2020
## language=nodejs; multiTenant=false
## approuter=
_schema-version: '3.1'
ID: hana-opensap-cloud-2020
version: 1.1.0
description: "HANA Cloud 2020 openSAP example"
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm install
- npx cds build
modules:
# --------------------- SERVER MODULE ------------------------
- name: hana-opensap-cloud-2020-srv
# ------------------------------------------------------------
type: nodejs
path: srv
parameters:
memory: 512M
disk-quota: 1024M
properties:
EXIT: 1 # required by deploy.js task to terminate
requires:
# Resources extracted from CAP configuration
- name: hana-opensap-cloud-2020-db
- name: openSAPHANA-uaa
provides:
- name: srv_api # required by consumers of CAP services (e.g. approuter)
properties:
url: ${default-url}
# -------------------- DB MODULE ------------------------
- name: db
# ------------------------------------------------------------
type: hdb
path: db
parameters:
app-name: hana-opensap-cloud-2020-db
requires:
# 'hana' and 'xsuaa' resources extracted from CAP configuration
- name: hana-opensap-cloud-2020-db
properties:
TARGET_CONTAINER: '~{hdi-service-name}'
- name: cross-container-service-1
group: SERVICE_REPLACEMENTS
properties:
key: ServiceName_1
service: '~{the-service-name}'
- name: hana-opensap-cloud-2020-user-db
group: SERVICE_REPLACEMENTS
properties:
key: hdi-user-service
service: '~{user-container-name}'
# -------------------- USER DB MODULE ------------------------
- name: user_db
# ------------------------------------------------------------
type: hdb
path: user_db
parameters:
app-name: hana-opensap-cloud-2020-user-db
requires:
# 'hana' and 'xsuaa' resources extracted from CAP configuration
- name: hana-opensap-cloud-2020-user-db
resources:
# services extracted from CAP configuration
# 'service-plan' can be configured via 'cds.requires.<name>.vcap.plan'
# ------------------------------------------------------------
- name: hana-opensap-cloud-2020-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: openSAPHANA-uaa
# ------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
service-plan: application
service: xsuaa
config:
xsappname: 'openSAPHANA-${space}'
tenant-mode: dedicated
path: xs-security.json
# ------------------------------------------------------------
- name: hana-opensap-cloud-2020-user-db
# ------------------------------------------------------------
type: com.sap.xs.hdi-container
parameters:
service: hana # or 'hanatrial' on trial landscapes
service-plan: hdi-shared
config:
schema: OPENSAP_HANA_USER
properties:
user-container-name: '${service-name}'
# ------------------------------------------------------------
- name: cross-container-service-1
# ------------------------------------------------------------
type: org.cloudfoundry.existing-service
parameters:
service-name: CROSS_SCHEMA_SFLIGHT
properties:
the-service-name: '${service-name}'
# ------------------------------------------------------------
- name: sap.hana.democontent.epm.services.images
# ------------------------------------------------------------
type: org.cloudfoundry.existing-service
parameters:
service-name: sap.hana.democontent.epm.services.images.00
properties:
xshttpdest-images-service-name: '${service-name}'
# ------------------------------------------------------------
- name: CROSS_SCHEMA_SFLIGHT
# ------------------------------------------------------------
type: org.cloudfoundry.existing-service
parameters:
service-name: CROSS_SCHEMA_SFLIGHT