Deploy content from the HTML5 Application Repository using the Generic Application Content Deployer (GACD).
-
cf CLI
is installed locally, see Download and Install the Cloud Foundry Command Line Interface. -
The multitarget application (MTA) plug-in for the Cloud Foundry command-line interface to deploy MTAs is installed locally. For more information, see Install the MultiApps CLI Plugin in the Cloud Foundry Environment.
-
The Cloud MTA Build Tool (MBT) is installed, see Cloud MTA Build Tool: Download
You can deploy your content to the HTML5 Application Repository using the GACD (Generic Application Content Deployer) module. The GACD module has the module type com.sap.application.content
. This module type enables the deploy plug-in generic application content deploy support. It means that when a module is processed in the cf deploy flow, the deploy service locates the service resource that is required as a target for the deploy and deploys the corresponding content.zip
file.
-
Create a nested
content.zip
file that contains a zip file for each HTML5 application.Example of a nested content.zip file
content.zip app1.zip manifest.json xs-app.json ….. app2.zip …..
-
Create an MTA development descriptor (mta.yaml file).
See Defining Multitarget Application Development Descriptors.
-
In the MTA development descriptor (mta.yaml file), define the deployer module:
ID: testdeployer _schema-version: '3.1' modules: - name: ui_deployer type: com.sap.application.content path: deployer/ requires: - name: uideployer_html5_repo_host parameters: content-target: true resources: - name: uideployer_html5_repo_host parameters: service-plan: app-host service: html5-apps-repo type: org.cloudfoundry.managed-service version: 0.0.1
-
To create an MTA archive (mtar file), build your content with theMTA Build Tool (MBT).
Run the following command:
mbt build
For more information on MBT build options, see: How to build an MTA archive from the project sources
-
Deploy the MTA archive (mtar file) using the CLI command cf deploy.
Run the following command:
cf deploy <path-to-mtar-file>
For example, from the directory where your mtar file is located, run
cf deploy myapp_0.0.1.mtar
.
Related Information
Deploying Content with Generic Application Content Deployment