How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

SHINA is the abbreviation of SAP HANA Interactive Education. It is a demo application that demonstrates how to develop SAP HANA native applications.

This application contains sample data and HANA database tables, views, OData services and UI, conforming to the SAP HANA Extended Service Advanced Programming Model, and consists of the following packages:

  • core-db: core data model

  • core-js: backend implementation of Data Generator, Purchase Order Worklist and Sales Dashboard, based on nodejs

  • user-js: User's CRUD implementation, also based on nodejs and XSOData library. It also demonstrates how to create and schedule jobs using Cloud Foundry's job scheduling service.

  • web: UI implementation for SHINE Launchpad and other applications, based on SAP UI5.

  • site-content: Required configuration file for SAP Fiori Launchpad.

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

1. We need to clone the SHINA source file provided by SAP to the local and package it into mtar format, so we need to download the MTAR builder.

Downloading from SAP Service Market is actually a .jar file.

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

What does MTA mean? Multi-Target Application, which consists of a series of software modules, each module can be developed by different programming languages ​​and use different deployment techniques, but these modules share the same life cycle during development and deployment.

The SHINE introduced above is a good example of MTA. The database is developed with the HANA native model, the front-end page is developed with SAP UI5, and the business logic is developed with nodejs. These modules will be packaged into a file through the MTA builder described below, and then deployed to Cloud Foundry uniformly.

There is an mta.yaml file under the root directory of each MTA application folder, which maintains the types, packaging methods and other information of each module that composes the MTA application.

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

2. Clone the SHINA application from github to the local:

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

执行命令 java -jar mta.jar -build-target=CF -mtar=shine-cf.mtar build

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

Finally, the 150MB mtar file is generated. This file can now be deployed to cloud foundry.

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

Use the command line cf deploy shine-cf.mtar to deploy the mtar file packaged and generated in the previous step to the SAP cloud platform.

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

After successful deployment, you can access two applications, shiny-web and site-web, which are automatically set to the Started state.

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

To remove the deployed application from Cloud Foundry, execute the command line: cf undeploy com.sap.refapps.shine -f –delete-services

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

To get more original technical articles from Jerry, please follow the public account "Wang Zixi" or scan the QR code below:

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

How to deploy SAP Multi Target application to Cloud Foundry environment of SAP cloud platform

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325333101&siteId=291194637