Visual COBOL lets you add a Dockerfile to a native COBOL project or to a native Unit Test project to simplify the process of containerizing an existing application. The Dockerfile created by Visual COBOL uses default values for details such as image names and includes basic instructions in order to create an image for the native COBOL project. If you need the Dockerfile to use non-default settings or to perform additional processing you can modify it once Visual COBOL has added it to your project.
See casesxml for more information on the casesxml command, To export an enterprise server instance for information on using Server Explorer to export an enterprise server definition, and To add files to a COBOL project for information on adding a file to your project.
Select one of the following, then click OK:
This option is not available for selection if the current project does not have an enterprise server associated with it.
A Docker.deploy folder is added to the project. This folder contains the enterprise server definition and a PowerShell script named DeployAndWait.ps1 which is used to deploy the enterprise server and run it in the container.
If the project already contained a Dockerfile you are asked if you want to rename it and generate a new Dockerfile. Click Yes to rename the existing Dockerfile (to Dockerfile.original) or No to leave the existing Dockerfile unchanged.
You might want to look at some of the Dockerfiles supplied with the Visual COBOL container demonstrations for guidance on the sort of changes to make.