-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmta.yaml
112 lines (107 loc) · 2.75 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
_schema-version: '3.1'
ID: my_proj
version: 1.0.0
description: "A simple CAP project."
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm install --production
- npx -p @sap/cds-dk cds build --production
- npm --prefix ./frontend install ./frontend
- npm run build --prefix ./frontend
modules:
- name: my_proj-srv
type: nodejs
path: gen/srv
parameters:
buildpack: nodejs_buildpack
build-parameters:
builder: npm
provides:
- name: srv-api # required by consumers of CAP services (e.g. approuter)
properties:
srv-url: ${default-url}
requires:
- name: my_proj-db
- name: my_proj-auth
- name: my_proj-destination
- name: my_proj-db-deployer
type: hdb
path: gen/db
parameters:
buildpack: nodejs_buildpack
requires:
- name: my_proj-db
- name: my_proj
type: approuter.nodejs
path: app/
parameters:
keep-existing-routes: true
disk-quota: 256M
memory: 256M
requires:
- name: srv-api
group: destinations
properties:
name: srv-api # must be used in xs-app.json as well
url: ~{srv-url}
forwardAuthToken: true
- name: my_proj-auth
- name: my_proj-html5-runtime
- name: my_proj-html5-deployer
type: com.sap.html5.application-content
path: html5Deployer
requires:
- name: my_proj-html5-host
build-parameters:
ignore:
- 'resources/.DS_Store'
requires:
- name: my_proj-html5-app
artifacts:
- "./*"
target-path: resources/frontend
- name: my_proj-html5-app
type: html5
path: frontend
build-parameters:
supported-platforms:
[]
build-result: build
resources:
- name: my_proj-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
- name: my_proj-auth
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
path: ./xs-security.json
config:
xsappname: my_proj-${org}-${space}
tenant-mode: dedicated
- name: my_proj-destination
type: org.cloudfoundry.managed-service
parameters:
service: destination
service-plan: lite
- name: my_proj-html5-host
parameters:
service-name: my_proj-html5-host
service-plan: app-host
service: html5-apps-repo
config:
sizeLimit: 100
type: org.cloudfoundry.managed-service
- name: my_proj-html5-runtime
parameters:
service-name: my_proj-html5-runtime
service-plan: app-runtime
service: html5-apps-repo
type: org.cloudfoundry.managed-service