cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy from docker hub using mta & cf deploy?

0 Kudos

Hi,

I'm trying to deploy a CF app based on an image in docker. When I try to follow the Example 4 here, it is giving me the below error:

the path of the "docker-image" module is not definedMTA

When I include - path: . into the mta file, the build works but deploy fails with the error

Error uploading application "docker-image": org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: org.cloudfoundry.multiapps.common.SLException: Error retrieving content of MTA module "docker-image/data.zip"

Any idea on how do I implement this?

René
Product and Topic Expert
Product and Topic Expert
0 Kudos

Does it work if you deploy the image using cf push?

0 Kudos

I have not tried it for this particular image. But generally cf push (via manifest.yaml) supports docker images. I have this working for a different image with cf push, but not with cf deploy (via mta.yaml) - same error

Lilyana
Advisor
Advisor
0 Kudos

Hi,

You can find more information about deploying docker images here:

https://github.com/SAP-samples/cf-mta-examples/tree/main/cf-app-docker

And the official documentation is:

https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/754d4800b69b478eaa2427338c5d47e5.html...

Best regards,

Lilyana

0 Kudos

lilyana.rangelova - Thank you! This worked for me. This is what I was looking for!

Cheers,

Varun

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos
0 Kudos

Hi Yogananda, Thank you for taking time to reply!

I was looking for pulling a docker image in my mta file & not deploying a CAP app using docker.

Thanks,

Varun