_schema-version: 3.3.0
ID: CSR
description: CSR CAP project.
version: 1.0.0
modules:
- name: isbncertificatesrv
type: nodejs
path: gen/srv
properties:
DEBUG: sap-cloud-sdk:*
requires:
- name: isbncertificate-auth
- name: isbn-postgres
- name: isbn-destination-service
- name: isbn-connector-connectivity
provides:
- name: srv-api
properties:
srv-url: ${default-url}
parameters:
buildpack: nodejs_buildpack
instances: 1
build-parameters:
builder: npm-ci
- name: csr-app-postgres-deployer
type: nodejs
path: gen/pg
requires:
- name: isbn-postgres
parameters:
buildpack: nodejs_buildpack
disk-quota: 1GB
memory: 1GB
no-route: true
no-start: true
tasks:
- command: npm start
disk-quota: 1GB
memory: 1GB
name: deploy-to-postgresql
build-parameters:
ignore:
- node_modules/
- name: isbncertificateui
type: nodejs
path: app
requires:
- name: srv-api
group: destinations
properties:
forwardAuthToken: true
name: srv-api
url: ~{srv-url}
- name: isbncertificate-auth
provides:
- name: app-api
properties:
app-protocol: ${protocol}
app-uri: ${default-uri}
parameters:
buildpack: nodejs_buildpack
disk-quota: 1GB
keep-existing-routes: true
memory: 1GB
build-parameters:
ignore:
- default-env.json
- .env
- name: CSR-app-content
type: com.sap.application.content
path: .
requires:
- name: CSR-repo-host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- isbncertificatehtml5isbncertificatehtml5.zip
name: isbncertificatehtml5isbncertificatehtml5
target-path: resources/
- name: isbncertificatehtml5isbncertificatehtml5
type: html5
path: app/isbncertificatehtml5
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: isbncertificate-auth
type: org.cloudfoundry.managed-service
parameters:
config:
tenant-mode: dedicated
xsappname: isbncertificate-${org}-${space}
path: ./xs-security.json
service: xsuaa
service-plan: application
- name: isbn-postgres
type: org.cloudfoundry.managed-service
parameters:
service: postgresql-db
service-plan: development
- name: isbn-destination-service
type: org.cloudfoundry.managed-service
parameters:
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
existing_destinations_policy: update
service: destination
service-plan: lite
- name: isbn-connector-connectivity
type: org.cloudfoundry.managed-service
parameters:
service: connectivity
service-plan: lite
- name: CSR-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-name: CSR-html5-service
service-plan: app-host
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- npm ci
- npx cds build --production
- bash ./pg-build.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.