Skip to content

Latest commit

 

History

History

deploy-with-url

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Deploy an MTAR referenced by a remote URL

This example shows how to deploy an MTAR that isn’t present on your local system.

Note
With this scenario, the Deploy Service will not check for any ongoing operations with the current MTA.

Try it out

Deploy the MTA

$ echo "https://github.com/SAP-samples/cf-mta-examples/blob/main/deploy-with-url/anatz.zip?raw=true" | cf deploy ;

Examine the result

List the deployed MTA

$ cf mta anatz ;
Showing health and status for multi-target app anatz in org ****** / space ****** as ******...
OK
Version: 4.0.0
Namespace:

Apps:
name    requested state   instances   memory   disk   urls
anatz   started           1/1         64M      1G     <org>-<space>-anatz.cfapps.sap.hana.ondemand.com

List app status and attributes

$ cf app anatz ;
Showing health and status for app anatz in org ****** / space ****** as ******...

name:              anatz
requested state:   started
routes:            <org>-<space>-anatz.cfapps.sap.hana.ondemand.com
last uploaded:     Wed 03 Feb 11:33:55 EET 2021
stack:             cflinuxfs4
buildpacks:        staticfile

type:           web
instances:      1/1
memory usage:   64M
     state     since                  cpu    memory         disk       details
#0   running   2021-02-03T09:34:39Z   0.5%   13.8M of 64M   6M of 1G

Clean up resources

It is recommended to stop or undeploy your MTAs when they are no longer needed. In order to do so, run the following command:

$ cf undeploy <mta-id> -f --delete-services