-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathmta.yaml
206 lines (195 loc) · 5.4 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
_schema-version: "2.0.0"
ID: cloud-espm-cloud-native
version: 1.3.2
parameters:
enable-parallel-deployments: true
modules:
# the parent and the commons module needs to be build,
# but not deployed as these are not microservices. They contain the libraries, helper classes
- name: parent
type: java.tomcat
path: .
build-parameters:
builder: custom
supported-platforms: []
commands:
- mvn -N install
timeout: 60m
- name: commons
type: java.tomcat
path: commons
build-parameters:
builder: custom
supported-platforms: []
commands:
- mvn clean install
timeout: 60m
- name: espm-product-svc
type: java.tomcat
path: product-service
build-parameters:
builder: maven
build-result: "target/product-service-1.3.2.jar"
timeout: 60m
properties:
TARGET_RUNTIME: tomcat
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
JBP_CONFIG_SAP_MACHINE_JDK: "{ version: 17.+ }"
requires:
- name: espm-hana-db
- name: espm-xsuaa
parameters:
memory: 1G
buildpack: sap_java_buildpack
provides:
- name: product-service
properties:
product-url: "${default-url}"
- name: stock-service
properties:
product-url: "${default-url}"
- name: espm-customer-svc
type: java.tomcat
path: customer-service
build-parameters:
builder: maven
build-result: "target/customer-service-1.3.2.jar"
timeout: 60m
properties:
TARGET_RUNTIME: tomcat
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
JBP_CONFIG_SAP_MACHINE_JDK: "{ version: 17.+ }"
requires:
- name: espm-hana-db
parameters:
memory: 1G
buildpack: sap_java_buildpack
provides:
- name: customer-service
properties:
customer-url: "${default-url}"
- name: espm-sales-svc
type: java.tomcat
path: sale-service
build-parameters:
builder: maven
build-result: "target/sale-service-1.3.2.jar"
timeout: 60m
deployed-after:
- espm-product-svc
properties:
TARGET_RUNTIME: tomcat
QUEUE_NAME: "<yourorgname>/<any_messageclientname>/<uniqueID>/salesorderqueue"
PROD_SERVICE: ~{product-service/product-url}
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
JBP_CONFIG_SAP_MACHINE_JDK: "{ version: 17.+ }"
requires:
- name: espm-hana-db
- name: espm-em
- name: espm-destination
- name: espm-xsuaa
- name: product-service
group: destinations
properties:
name: product-service
product-url: '~{product-url}'
forwardAuthToken: true
parameters:
memory: 1G
buildpack: sap_java_buildpack
provides:
- name: sales-service
properties:
sale-url: "${default-url}"
- name: espm-worker
type: java.tomcat
path: worker
build-parameters:
builder: maven
build-result: "target/worker-1.3.2.jar"
timeout: 60m
properties:
TARGET_RUNTIME: tomcat
QUEUE_NAME: "<yourorgname>/<any_messageclientname>/<uniqueID>/salesorderqueue"
spring.main.allow-circular-references: true
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
JBP_CONFIG_SAP_MACHINE_JDK: "{ version: 17.+ }"
requires:
- name: espm-hana-db
- name: espm-em
parameters:
memory: 1G
buildpack: sap_java_buildpack
no-host: true
health-check-type: process
- name: espm-gateway
type: html5
path: gateway
parameters:
version: 2.0-${timestamp}
memory: 1G
properties:
deployed-after:
- espm-product-svc
- espm-customer-svc
- espm-sales-svc
build-parameters:
builder: npm
#build-result: dist
timeout: 60m
buildpack: https://github.com/cloudfoundry/nodejs-buildpack.git
requires:
- name: espm-xsuaa
- name: product-service
group: destinations
properties:
name: product-service
url: '~{product-url}'
forwardAuthToken: true
- name: stock-service
group: destinations
properties:
name: stock-service
url: '~{product-url}'
forwardAuthToken: true
- name: sales-service
group: destinations
properties:
name: sales-service
url: '~{sale-url}'
forwardAuthToken: true
- name: customer-service
group: destinations
properties:
name: customer-service
url: '~{customer-url}'
forwardAuthToken: true
provides:
- name: ui
properties:
url: "${default-url}"
resources:
- name: espm-em
type: org.cloudfoundry.managed-service
parameters:
service: enterprise-messaging
service-plan: default
path: em-default.json
- name: espm-destination
type: destination
parameters:
service: destination
service-plan: lite
- name: espm-hana-db
type: com.sap.xs.hana-schema
parameters:
service: hana
service-plan: schema
config:
database_id: <database_guid>
- name: espm-xsuaa
parameters:
path: ./xs-security.json
service-plan: application
service: xsuaa
type: org.cloudfoundry.managed-service