SAP HANA XSA sample code project demonstrating the use of the HANA Deployment Infrastructure(HDI) dynamic deployer.
This repository contains a complete Multi-Target Application (MTA) sample project that is an example of using the SAP Cloud Application Programming (CAP) approach and it's multitenancy support library to provide true enterprise multitenant application.
While the principals described here apply specifically to the managed-hana service broker as implemented in on-premise HANA, this approach may be adapted to use the service manager service broker found in SAP Business Technology Platform Cloud Foundry. However, the details are not provided here. The idea of creating HDI containers at run-time is useful in quasi-multitenant use-cases outside of pure Cloud Foundry multitenancy development approach supporting subscribability.
- SAP HANA Server Version 2 SPS 04 or later. SAP HANA or SAP HANA, express edition.
- Clone this repo https://github.com/SAP-samples/hana-dynamic-deploy.git into your local system or IDE of choice.
File / Folder | Purpose |
---|---|
README.md |
this getting started guide |
COMMANDS.md |
commands for building/deploying |
app/ |
content for UI frontends go here |
db/ |
staticly deployed database definitions go here |
documentation/ |
supplemental documentation |
dyn1/ |
dynamically deployed database definitions (1 data source) |
dyn2/ |
dynamically deployed database definitions (2 data sources) |
srv/ |
your service module code goes here |
mta.yaml |
project structure and relationships |
See the COMMANDS file for commands for building and deploying the project.
This example project contains no known issues.
SAP Business Technology Platform Cloud Foundry deployment is currently not supported. (Leave feature requests as issues.
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
The primary documatation is found at the NPM.org HDI Dynamic Deploy @sap/hdi-dynamic-deploy repo.
However, understand that the dynamic deployer wraps the functionality of the primary HDI deployer which has much configuration details @sap/hdi-deploy.
For more information about HANA DI, please check Defining the Data Model in XS Advanced and the SAP HANA Deployment Infrastructure section of the HANA Administration Guide.
An SAP Code Sample such as this is open software but is not quite a typical full-blown open source project. If you come across a problem, we’d encourage you to check the project’s issue tracker and to file a new issue if needed. If you are especially passionate about something you’d like to improve, you are welcome to fork the repository and submit improvements or changes as a pull request.
Tools used throughout the development of this project are evolving and my change over time. This may result in discrepancies in the exact procedures or screen-clips in the accompanying blog posts. All efforts will be made to update the content in order to keep pace with the tooling, but cannot be guaranteed.
Stay tuned for an in-depth blog post with detailed discussion.
Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.