Skip to content

Latest commit

 

History

History
104 lines (65 loc) · 3.83 KB

deploy-content-using-the-generic-application-content-deployer-07c6796.md

File metadata and controls

104 lines (65 loc) · 3.83 KB

Deploy Content Using the Generic Application Content Deployer

Deploy content from the HTML5 Application Repository using the Generic Application Content Deployer (GACD).

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.

  1. Create a nested content.zip file that contains a zip file for each HTML5 application.

    Example of a nested content.zip file

    Sample Code:

    content.zip
        app1.zip
           manifest.json
           xs-app.json
           …..
        app2.zip
        …..
    
    
  2. Create an MTA development descriptor (mta.yaml file).

    See Defining Multitarget Application Development Descriptors.

  3. In the MTA development descriptor (mta.yaml file), define the deployer module:

    Sample Code:

    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
    
  4. To create an MTA archive (mtar file), build your content with theMTA Build Tool (MBT).

    Run the following command:

    Sample Code:

    mbt build
    

    For more information on MBT build options, see: How to build an MTA archive from the project sources

  5. Deploy the MTA archive (mtar file) using the CLI command cf deploy.

    Run the following command:

    Sample Code:

    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