-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmta.yaml
134 lines (134 loc) · 3.7 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
_schema-version: "3.1"
ID: user-mngr
description: BTP user management microservice for any generic application.
version: 1.0.0
modules:
- name: user-mngr-srv
type: nodejs
path: gen/srv
requires:
- name: user-mngr-destination-service
parameters:
service-key: user-mngr-destination-service-key
- name: uaa_user-mngr
parameters:
service-key: key
provides:
- name: srv-api
properties:
srv-url: ${default-url}
parameters:
buildpack: nodejs_buildpack
host: ${appname}
memory: 256M
disk-quota: 256M
build-parameters:
builder: npm-ci
properties:
APP_AUTHS: '{ "ID": 1, "name": "GenericApp_Administrator", "description": "Administrator of a generic application" }|{ "ID": 2, "name": "GenericApp_User", "description": "User of a generic application" }'
DEFAULT_AUTH: 2
- name: user-mngr-destination-content
type: com.sap.application.content
requires:
- name: user-mngr-destination-service
parameters:
content-target: true
- name: user-mngr_html_repo_host
parameters:
service-key:
name: user-mngr-html5-app-host-service-key
- name: uaa_user-mngr
parameters:
service-key:
name: key
parameters:
content:
instance:
destinations:
- Name: user_mngr_biagi_dev_user_mngr_html_repo_host
ServiceInstanceName: user-mngr-html5-app-host-service
ServiceKeyName: user-mngr-html5-app-host-service-key
sap.cloud.service: ${appname}
- Authentication: OAuth2UserTokenExchange
Name: user_mngr_biagi_dev_uaa_user_mngr
ServiceInstanceName: xsuaa-svc
ServiceKeyName: key
sap.cloud.service: ${appname}
existing_destinations_policy: ignore
build-parameters:
no-source: true
- name: user-mngr-app-content
type: com.sap.application.content
path: .
requires:
- name: user-mngr_html_repo_host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- usermngr.zip
name: usermngr
target-path: resources/
- name: usermngr
type: html5
path: app/user-mngr
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: user-mngr_html_repo_host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-name: user-mngr-html5-app-host-service
service-plan: app-host
- name: uaa_user-mngr
type: org.cloudfoundry.managed-service
parameters:
path: ./xs-security.json
service: xsuaa
service-name: xsuaa-svc
service-plan: application
- name: user-mngr-destination-service
type: org.cloudfoundry.managed-service
requires:
- name: srv-api
parameters:
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
- Name: user-mngr-app-api
Description: User Manager CAP service
Authentication: NoAuthentication
ProxyType: Internet
Type: HTTP
URL: ~{srv-api/srv-url}
HTML5.DynamicDestination: true
HTML5.ForwardAuthToken: true
existing_destinations_policy: update
version: 1.0.0
service: destination
service-name: user-mngr-destination-service
service-plan: lite
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
appname: user-mngr-[your BTP subdomain]
build-parameters:
before-all:
- builder: custom
commands:
- npx -p @sap/cds-dk cds build --production