-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmta.yaml
136 lines (131 loc) · 4.79 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
_schema-version: "3.3"
ID: dox-mission-invoice-validation
version: 1.0.0
description: "DOX mission for invoice validation"
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm run build:cf --prefix api
- npm run build --prefix ui
modules:
- name: dox-invoice-validation
type: approuter.nodejs
path: router
parameters:
disk-quota: 1024M
memory: 1024M
health-check-type: process #http/port/process
requires:
- name: dox-invoice-validation-auth
- name: api
group: destinations
properties:
forwardAuthToken: true
strictSSL: false
name: dox-invoice-validation-api
url: ~{default-url}
- name: snapshot-service
group: destinations
properties:
forwardAuthToken: true
strictSSL: false
name: dox-invoice-validation-snapshot
url: ~{default-url}
build-parameters:
builder: npm
ignore: ["./dev", "./node_modules"]
requires:
- name: dox-invoice-validation-api-srv
- name: dox-invoice-validation-api-srv
type: nodejs
path: api/gen/srv
parameters:
buildpack: nodejs_buildpack
build-parameters:
builder: npm
ignore: ["./node_modules"]
provides:
- name: api # required by consumers of CAP services (e.g. approuter)
properties:
default-host: ${default-host} #usually generated using the <org-name>-<space-name>-<module-name>
default-domain: ${default-domain} #the default shared domain of the landscape
default-uri: ${default-uri} #composed by ${host}.${domain}
protocol: ${protocol} #usually defaults to "http"
default-url: ${default-url} # composed of ${protocol}://${default-uri}
requires:
- name: dox-invoice-validation-dox
- name: dox-invoice-validation-db
- name: dox-invoice-validation-auth
- name: dox-invoice-validation-api-dest
- name: dox-invoice-validation-s3-object-store
- name: dox-invoice-validation-db-deployer
type: hdb
path: api/gen/db
parameters:
buildpack: nodejs_buildpack
build-parameters:
ignore: ["./node_modules"]
requires:
- name: dox-invoice-validation-db
- name: dox-invoice-validation-snapshot-service
type: python
path: snapshot-service/
parameters:
memory: 512M
disk-quota: 1022M
provides:
- name: snapshot-service
properties:
default-host: ${default-host}
default-domain: ${default-domain}
default-uri: ${default-uri}
protocol: ${protocol}
default-url: ${default-url}
resources:
# ----------------------- DOX SERVICE ------------------------
- name: dox-invoice-validation-dox
# ------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
service: sap-document-information-extraction
service-plan: premium_edition
# ----------------------- HDI SERVICE ------------------------
- name: dox-invoice-validation-db
# ------------------------------------------------------------
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
# ----------------------- UAA SERVICE ------------------------
- name: dox-invoice-validation-auth
# ------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
path: ./xs-security.json
config:
tenant-mode: dedicated
# -------------------- DESTINATION SERVICE -------------------
- name: dox-invoice-validation-api-dest
# ------------------------------------------------------------
type: org.cloudfoundry.managed-service
parameters:
service: destination
service-plan: lite
# -------------------- AWS S3 SERVICE -------------------
- name: dox-invoice-validation-s3-object-store
# ------------------------------------------------------------
type: objectstore
parameters:
service: objectstore
service-plan: s3-standard
# -------------------- Application Logging -------------------
- name: dox-invoicing-logging
# ------------------------------------------------------------
type: application-logs
parameters:
service-plan: lite