-
Notifications
You must be signed in to change notification settings - Fork 8
/
mta-xsa.yaml
95 lines (92 loc) · 2.42 KB
/
mta-xsa.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
ID: epmbp-consumer-app
_schema-version: "2.1"
version: 0.0.1
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm install --production
- npx -p @sap/cds-dk cds build --production
modules:
- name: epmbp-consumer-app-db
type: hdb
path: gen/db
build-parameters:
ignore: ["node_modules/"]
parameters:
memory: 256M
disk-quota: 256M
requires:
- name: epmbp-consumer-app-db-hdi-container
- name: epmbp-consumer-app-srv
type: nodejs
path: gen/srv
build-parameters:
ignore: ["node_modules/"]
parameters:
memory: 256M
disk-quota: 1024M
provides:
- name: srv_api
properties:
url: ${default-url}
requires:
- name: epmbp-consumer-app-db-hdi-container
- name: epmbp-consumer-app-uaa
- name: es5destination
group: destinations
properties:
name: ES5
url: ~{url}
username: ~{username}
password: ~{password}
- name: epmbp-consumer-app-app
type: nodejs
path: app
build-parameters:
ignore: ["node_modules/"]
parameters:
memory: 256M
disk-quota: 1024M
requires:
- name: epmbp-consumer-app-uaa
- name: srv_api
group: destinations
properties:
forwardAuthToken: true
strictSSL: false
name: srv_api
url: ~{url}
- name: es5destination
group: destinations
properties:
name: ES5
url: ~{url}
# Providing this variables to the approuter in production causes the approuter to crash with:
# VError: environment-destinations/password: Additional properties not allowed
# username: ~{username}
# password: ~{password}
resources:
- name: epmbp-consumer-app-db-hdi-container
type: com.sap.xs.hdi-container
parameters:
service-plan: hdi-shared
properties:
hdi-container-name: ${service-name}
- name: epmbp-consumer-app-uaa
type: com.sap.xs.uaa
parameters:
path: ./xs-security.json
service-plan: space
- name: es5destination
type: org.cloudfoundry.user-provided-service
properties:
url: https://sapes5.sapdevcenter.com
name: ES5
username: DummyES5user
password: DummyES5password
parameters:
service: es5destination
path: ./default-es5destination.json