-
Notifications
You must be signed in to change notification settings - Fork 2
/
mta.yaml
179 lines (179 loc) · 4.88 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
_schema-version: "3.1"
ID: ui5con24-dev-env
description: UI5con demo CAP project.
version: 1.0.0
modules:
- name: ui5con24-dev-env-srv
type: nodejs
path: packages/cap/gen/srv
requires:
- name: ui5con24-dev-env-db
- name: ui5con24-dev-env-destination-service
- name: ui5con24-dev-env-connectivity-service
- name: ui5con24-dev-env-xsuaa-srv
provides:
- name: srv-api
properties:
srv-url: ${default-url}
parameters:
buildpack: nodejs_buildpack
build-parameters:
builder: npm
- name: ui5con24-dev-env-db-deployer
type: hdb
path: packages/cap/gen/db
requires:
- name: ui5con24-dev-env-db
parameters:
buildpack: nodejs_buildpack
- name: ui5con24-dev-env_ui_deployer
type: com.sap.application.content
path: packages
requires:
- name: ui5con24-dev-env_html_repo_host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- ui5con24app.zip
name: ui5con24app
target-path: resources/
- artifacts:
- ui5con24component.zip
name: ui5con24component
target-path: resources/
- artifacts:
- ui5con24lib.zip
name: ui5con24lib
target-path: resources/
- name: ui5con24app
type: html5
path: packages/app
build-parameters:
build-result: dist
builder: custom
commands:
- pnpm --filter ui5con24.app install
- pnpm --filter ui5con24.app build:cf
supported-platforms: []
- name: ui5con24component
type: html5
path: packages/component
build-parameters:
build-result: dist
builder: custom
commands:
- pnpm --filter ui5con24.component install
- pnpm --filter ui5con24.component build:cf
supported-platforms: []
- name: ui5con24lib
type: html5
path: packages/library
build-parameters:
build-result: dist
builder: custom
commands:
- pnpm --filter ui5con24.lib install
- pnpm --filter ui5con24.lib build:cf
supported-platforms: []
- name: ui5con24-dev-env-dest-content
type: com.sap.application.content
requires:
- name: ui5con24-dev-env-destination-service
parameters:
content-target: true
- name: ui5con24-dev-env_html_repo_host
parameters:
service-key:
name: ui5con24-dev-env_html_repo_host-key
- name: ui5con24-dev-env-xsuaa-srv
parameters:
service-key:
name: ui5con24-dev-env-xsuaa-srv-key
parameters:
content:
instance:
destinations:
- Name: ui5con24_repo_host
ServiceInstanceName: ui5con24-dev-env_html_repo_host
ServiceKeyName: ui5con24-dev-env_html_repo_host-key
sap.cloud.service: recap
- Authentication: OAuth2UserTokenExchange
Name: ui5con24_uaa
ServiceInstanceName: ui5con24-dev-env-xsuaa-srv
ServiceKeyName: ui5con24-dev-env-xsuaa-srv-key
sap.cloud.service: recap
existing_destinations_policy: ignore
build-parameters:
no-source: true
resources:
- name: ui5con24-dev-env-xsuaa-srv
type: org.cloudfoundry.managed-service
parameters:
config:
xsappname: ${space}-ui5con24-dev-env
tenant-mode: dedicated
path: ./xs-security.json
service: xsuaa
service-name: ui5con24-dev-env-xsuaa-srv
service-plan: application
- name: ui5con24-dev-env-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
- name: ui5con24-dev-env_html_repo_runtime
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-runtime
- name: ui5con24-dev-env_html_repo_host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-host
- name: ui5con24-dev-env-connectivity-service
type: org.cloudfoundry.managed-service
parameters:
service: connectivity
service-plan: lite
- name: ui5con24-dev-env-destination-service
type: org.cloudfoundry.managed-service
parameters:
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
HTML5.DynamicDestination: true
HTML5.ForwardAuthToken: true
Name: srv-api
ProxyType: Internet
Type: HTTP
URL: ~{srv-api/srv-url}
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
existing_destinations_policy: update
version: 1.0.0
service: destination
service-name: ui5con24-dev-env-destination-service
service-plan: lite
requires:
- name: srv-api
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
# - npm i
- pnpm --filter @capire/bookshop i
# - npx -p @sap/cds-dk cds build --production
- pnpm --filter @capire/bookshop build