openmainframeproject / zorow

z/OS Open Repository of Workflows (zorow), is an open source community dedicated to contributing and collaborating on z/OSMF workflows. Hosted by Open Mainframe Project
https://www.openmainframeproject.org/projects/zorow
Apache License 2.0
39 stars 24 forks source link

How to copy the docker images to IBM zCX server from USS using z/OSMF? #37

Open MacNale opened 4 years ago

MacNale commented 4 years ago

I am trying to build z/OSMF workflow to copy my application docker images from USS into zCX server. There are two approaches -

I have neither zCX Docker Registry nor a linux system. My docker images are available in tar format on USS. Is there any way to get my docker images in zCX? Is there any z/OSMF built-in step to perform this activity?

I read the documentation - http://www.redbooks.ibm.com/redbooks/pdfs/sg248457.pdf. It is not so clear to get started.

Edit 3rd Jun 2020 : Removed 'There is no SFTP available in zCX.' I have a zCX running now. I will test the SFTP from USS to zCX to transfer files in binary format as well properties files as ascii format.

Having a workflow for a sample hello word, would help immensely. This will act as best practices.

shreeji818 commented 4 years ago

z/OSMF does no provide any built-in step to perform such activity. Please refer to this video to see if you can ssh into zCX and deploy container. https://www.youtube.com/watch?v=9aYFzhvJVbE

MacNale commented 4 years ago

I think, it would be easier to get started with zCX if we zoSMF makes the deployment super easy.

jbostian commented 4 years ago

I'm curious about the comment about zCX not supporting sftp. You can run sftp from a zCX appliance, or sftp to an appliance from another platform. The Redbook gives an example of sftp use in chapter 8 around page 202. You just have to be sure to use port 8022 on the sftp command invocation.

Docker save/load of an image to/from a tar file with a file transfer via sftp into an appliance is a viable means to populate your appliance with container images. I can't speak to the feasibility of creating a workflow to automate this, but the necessary Docker and file transfer capabilities exist today.

MacNale commented 4 years ago

@jbostian - Thank you for pointing out. I will test how SFTP will help in transferring files from USS to zCX in binary and ascii format.