forked from SAP-samples/cloud-cap-samples-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mta-single-tenant.yaml
83 lines (83 loc) · 2.46 KB
/
mta-single-tenant.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
_schema-version: '2.1'
ID: bookshop-java-public
version: 1.0.0
description: "Bookshop CAP Java Project with UI"
parameters:
enable-parallel-deployments: true
modules:
# --------------------- SERVER MODULE ------------------------
- name: bookshop-java-public-srv
# ------------------------------------------------------------
type: java
path: srv
parameters:
memory: 1024M
disk-quota: 256M
buildpack: sap_java_buildpack
properties:
SPRING_PROFILES_ACTIVE: cloud
build-parameters:
builder: custom
commands:
- mvn clean package -DskipTests=true
build-result: target/*-exec.jar
requires:
- name: bookshop-java-public-hdi-container
- name: bookshop-java-public-uaa
provides:
- name: srv-url
properties:
url: '${default-url}'
# --------------------- DB MODULE ---------------------------
- name: bookshop-java-public-db
# -----------------------------------------------------------
type: nodejs
path: db
parameters:
memory: 256M
disk-quota: 512M
no-route: true
no-start: true
tasks: # execute hdi deployer on app creation/update
- name: hdi-deploy
command: npm run start
requires:
# Set user and password to secure rest API via basic authentication
- name: bookshop-java-public-hdi-container
# --------------------- APPROUTER MODULE ---------------------
- name: bookshop-java-public-approuter
# ------------------------------------------------------------
type: nodejs
path: app
parameters:
memory: 256M
disk-quota: 512M
requires:
- name: srv-url
group: destinations
properties:
name: backend
url: ~{url}
forwardAuthToken: true
strictSSL: true
- name: bookshop-java-public-uaa
provides:
- name: app-url
properties:
url: '${default-url}'
# --------------------- RESOURCES ---------------------
resources:
# -----------------------------------------------------
- name: bookshop-java-public-uaa
type: com.sap.xs.uaa
parameters:
service: xsuaa
service-plan: broker
path: ./cds-security.json
config: # override xsappname in cds-security.json, xsappname needs to be unique
xsappname: bookshop-java-public-${org}-${space}
- name: bookshop-java-public-hdi-container
type: org.cloudfoundry.managed-service
parameters:
service: hanatrial
service-plan: hdi-shared