Skip to content

Instantly share code, notes, and snippets.

@IObert
Created January 23, 2020 12:12
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IObert/220cb211a63a4030c25b31d912243d6a to your computer and use it in GitHub Desktop.
Save IObert/220cb211a63a4030c25b31d912243d6a to your computer and use it in GitHub Desktop.
Sample project descriptor which generates tiny mtar archives
_schema-version: 2.0.0
ID: bookshop
version: 1.0.0
parameters:
enable-parallel-deployments: true
modules:
- name: bookshop-db
type: hdb
path: db
parameters:
memory: 256M
disk-quota: 256M
requires:
- name: bookshop-db-hdi-container
deployed-after:
- bookshop-srv
build-parameters:
ignore: ["node_modules/"]
- name: bookshop-srv
type: nodejs
path: srv
parameters:
memory: 512M
disk-quota: 256M
host: ${space}-bookshop-server
build-parameters:
ignore: ["node_modules/"]
provides:
- name: srv_api
properties:
url: ${default-url}
requires:
- name: bookshop-db-hdi-container
- name: bookshop-ui
type: nodejs
path: app
parameters:
memory: 256M
disk-quota: 256M
host: ${space}-bookshop-ui
build-parameters:
ignore: ["node_modules/"]
requires:
- name: srv_api
group: destinations
properties:
forwardAuthToken: true
strictSSL: true
name: srv_api
url: ~{url}
resources:
- name: bookshop-db-hdi-container
type: com.sap.xs.hdi-container
properties:
hdi-container-name: ${service-name}
parameters:
service: hanatrial
@atla
Copy link

atla commented Jan 23, 2020

Thanks for sharing this! Highly appreciated especially with multiple modules that contain them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment