generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmta.yaml
225 lines (211 loc) · 5.78 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
_schema-version: 3.3.0
ID: migrationtool
description:
Assistant to support content migration from SAP Integration Services
(Neo) to SAP Integration Suite (Multi-cloud)
version: 1.3.0
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm run build:cf
modules:
- name: migrationtool-srv
type: nodejs
path: gen/srv
requires:
- name: migrationtool-db
- name: migrationtool-auth
# - name: migrationtool-postgres
parameters:
buildpack: nodejs_buildpack
disk-quota: 2G
memory: 1G
build-parameters:
builder: npm
ignore:
- node_modules/
provides:
- name: srv-api
properties:
srv-url: ${default-url}
- name: migrationtool-db-deployer
type: hdb
path: gen/db
parameters:
buildpack: nodejs_buildpack
disk-quota: 512M
memory: 256M
build-parameters:
builder: npm
ignore:
- node_modules/
requires:
- name: migrationtool-db
# - name: migrationtool-postgres-deployer
# type: nodejs
# path: gen/pg
# parameters:
# buildpack: nodejs_buildpack
# disk-quota: 512M
# memory: 256M
# no-route: true
# no-start: true
# tasks:
# - name: deploy-to-postgresql
# command: npm start
# build-parameters:
# builder: npm
# ignore:
# - node_modules/
# requires:
# - name: migrationtool-postgres
- name: migrationtool-app-deployer
type: com.sap.application.content
path: gen
requires:
- name: migrationtool-html5-repo-host
parameters:
content-target: true
build-parameters:
build-result: app/
requires:
- artifacts:
- contentviewer.zip
name: migrationtoolcontentviewer
target-path: app/
- artifacts:
- migrationjobs.zip
name: migrationtoolmigrationjobs
target-path: app/
- artifacts:
- migrationtasks.zip
name: migrationtoolmigrationtasks
target-path: app/
- artifacts:
- registration.zip
name: migrationtoolregistration
target-path: app/
- name: migrationtool-dest-content
type: com.sap.application.content
requires:
- name: migrationtool-destination-service
parameters:
content-target: true
- name: srv-api
- name: migrationtool-auth
parameters:
service-key:
name: migrationtool-auth-key
- name: migrationtool-html5-repo-host
parameters:
service-key:
name: migrationtool-html5-repo-host-key
parameters:
content:
instance:
destinations:
- Name: srv-api
Authentication: OAuth2UserTokenExchange
TokenServiceInstanceName: migrationtool-auth
TokenServiceKeyName: migrationtool-auth-key
URL: ~{srv-api/srv-url}
sap.cloud.service: sap.btp.cpimigrationtool
HTML5.Timeout: 60000
- Name: migrationtool-html5-repo-host
ServiceInstanceName: migrationtool-html5-repo-host
ServiceKeyName: migrationtool-html5-repo-host-key
sap.cloud.service: sap.btp.cpimigrationtool
existing_destinations_policy: update
build-parameters:
no-source: true
- name: migrationtoolcontentviewer
type: html5
path: app/contentviewer
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: migrationtoolmigrationjobs
type: html5
path: app/migrationjobs
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: migrationtoolmigrationtasks
type: html5
path: app/migrationtasks
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: migrationtoolregistration
type: html5
path: app/registration
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: migrationtool-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
# - name: migrationtool-postgres
# type: org.cloudfoundry.managed-service
# parameters:
# service: postgresql-db
# service-plan: development
- name: migrationtool-auth
type: org.cloudfoundry.managed-service
parameters:
path: ./xs-security.json
service: xsuaa
service-plan: application
config:
tenant-mode: dedicated
xsappname: migrationtool-${org}-${space}
service-keys:
- name: migrationtool-auth-key
- name: migrationtool-html5-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-host
service-keys:
- name: migrationtool-html5-repo-host-key
- name: migrationtool-destination-service
type: org.cloudfoundry.managed-service
parameters:
service: destination
service-name: migrationtool-destination-service
service-plan: lite
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
existing_destinations_policy: update
version: 1.0.0