This topic outlines the steps that a Dockerfile must carry out to create an image that contains a COBOL application that can be run under Visual COBOL Development Hub.
The process defined in this topic is used by the supplied container demonstrations that create images for applications that you can use with Visual COBOL Development Hub. When you need to create an image to contain an application of yours, Micro Focus recommends that you base your Dockerfile on a container demonstration's Dockerfile (rather that write your Dockerfile from scratch) because that Dockerfile already performs the steps described in this topic. For more information on one of those container demonstrations, including information on all the files it contains, see The Hello World Container Demonstration.
Before you follow the steps in this topic you must have built a base image for Visual COBOL Development Hub. For information on creating a base image for Visual COBOL Development Hub see Building a Base Image Containing Visual COBOL Development Hub.
Before building an image containing an application to use with Visual COBOL Development Hub you need to ensure that you have available the following:
To build an image that includes an application to use with Visual COBOL Development Hub your Dockerfile needs to perform the following steps:
All of the container demonstrations offer the option to create such a login image, and those images are tagged with the suffix "_login". See Running the Container Demonstration for the Visual COBOL Base Image for information on how to specify that you want to create a _login image. For details on the commands required to build such an image, see the bld.sh script in any of the container demonstrations.