-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmta.yaml
More file actions
131 lines (127 loc) · 3.53 KB
/
mta.yaml
File metadata and controls
131 lines (127 loc) · 3.53 KB
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
_schema-version: 3.3.0
ID: xtravels
version: 1.0.0-SNAPSHOT
description: "xtravels for CAP Java"
parameters:
enable-parallel-deployments: true
modules:
- name: xtravels-srv
type: java
path: srv
parameters:
instances: 1
buildpack: sap_java_buildpack_jakarta
routes:
- route: "${default-url}"
- route: "${default-host}.cert.${default-domain}"
properties:
SPRING_PROFILES_ACTIVE: cloud
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 21.+ }'
AMS_DCL_ROOT: ams/dcl
XFLIGHTS_URL: <filled by GitHub action>
build-parameters:
builder: custom
commands:
- mvn clean package -DskipTests=true --batch-mode
build-result: target/*-exec.jar
provides:
- name: srv-api # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
srv-cert-url: '${protocol}://${default-host}.cert.${default-domain}'
requires:
- name: xtravels-ias
parameters:
config:
credential-type: X509_GENERATED
app-identifier: srv
- name: xtravels-db
deployed-after:
- xtravels-ams-policies-deployer
- name: xtravels
type: approuter.nodejs
path: app
requires:
- name: xtravels-ias
parameters:
config:
credential-type: X509_GENERATED
app-identifier: approuter
- name: srv-api
group: destinations
properties:
url: ~{srv-cert-url}
forwardAuthCertificates: true
forwardAuthToken: true
strictSSL: true
parameters:
keep-existing-routes: true
disk-quota: 512M
memory: 256M
provides:
- name: app-api
properties:
app-protocol: ${protocol}
app-uri: ${default-uri}
url: ${default-url}
- name: xtravels-ams-policies-deployer
type: javascript.nodejs
path: .
build-parameters:
builder: custom
commands:
- npx cds build --for ams
build-result: srv/src/gen/policies
parameters:
buildpack: nodejs_buildpack
no-route: true
no-start: true
tasks:
- name: deploy-dcl
command: npm start
memory: 512M
requires:
- name: xtravels-ias
parameters:
config:
credential-type: X509_GENERATED
app-identifier: ams-policy-deployer
- name: xtravels-db-deployer
type: hdb
path: db
parameters:
buildpack: nodejs_buildpack
build-parameters:
builder: custom
commands:
- npm run build
requires:
- name: xtravels-db
resources:
- name: xtravels-ias
type: org.cloudfoundry.managed-service
parameters:
service: identity
service-name: xtravels-ias
service-plan: application
config:
display-name: xtravels-java
oauth2-configuration:
token-policy:
access-token-format: "jwt"
redirect-uris:
- ~{app-api/app-protocol}://*.~{app-api/app-uri}/login/callback
- ~{app-api/app-protocol}://~{app-api/app-uri}/login/callback
post-logout-redirect-uris:
- ~{app-api/app-protocol}://*.~{app-api/app-uri}/*/logout.html
xsuaa-cross-consumption: true
authorization:
enabled: true
requires:
- name: app-api
- name: xtravels-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared