This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
mta.yaml
89 lines (82 loc) · 2.6 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
_schema-version: '3.1'
ID: sap.capire-bookshop
version: 1.0.0
description: "A simple bookshop application"
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: capire-bookshop-srv
# ------------------------------------------------------------
type: nodejs
path: gen/srv
parameters:
memory: 512M
disk-quota: 512M
requires:
- name: capire-bookshop-db
- name: capire-bookshop-uaa
provides:
- name: srv_api # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
# -------------------- SIDECAR MODULE ------------------------
- name: capire-bookshop-db-deployer
# ------------------------------------------------------------
type: hdb
path: gen/db
parameters:
buildpack: nodejs_buildpack
memory: 256M
disk-quota: 256M
requires:
# 'hana' and 'xsuaa' resources extracted from CAP configuration
- name: capire-bookshop-db
# --------------------- APPROUTER MODULE ---------------------
- name: capire-bookshop-approuter
# ------------------------------------------------------------
type: nodejs
path: app
parameters:
memory: 512M
disk-quota: 512M
requires:
- name: capire-bookshop-uaa
- name: capire-bookshop-dest
- name: srv_api
group: destinations
properties:
forwardAuthToken: true
name: srv_api
url: ~{srv-url}
resources:
# ------------------------------------------------------------
- name: capire-bookshop-db
# ------------------------------------------------------------
type: com.sap.xs.hdi-container
parameters:
service: hana # or 'hanatrial' on trial landscapes
service-plan: hdi-shared
properties:
hdi-container-name: ${service-name}
# ------------------------------------------------------------
- name: capire-bookshop-uaa
# ------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
path: ./xs-security.json
# --------------------- DESTINATION SERVICE ----------------------
- name: capire-bookshop-dest
# ----------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
service: destination
service-plan: lite