Enterprise Developer lets you add a Dockerfile to a native COBOL project or to a native COBOL Unit Test project to simplify the process of containerizing an existing application. The Dockerfile created by Enterprise Developer 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 Enterprise Developer 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 import a file into a project for information on adding a file to your project.
The New Dockerfile wizard is displayed.
Do not add instructions to configure an Enterprise Server | No enterprise server/COBOL server configuration details are added to the Dockerfile. |
Add intructions to configure an Enterprise Server cloning the one associated with this project | Settings are copied from the enterprise server/COBOL server that is associated with the local project. |
Add intructions to configure an Enterprise Server using an XML file | Settings from an existing enterprise server/COBOL server are copied from an exported XML file. (The XML file must be in the folder structure for the current project.) |
Build layer repository | The name of the repository for the image, which should contain a suitable build environment for the project (this is typically a build tools product). |
Deployment layer repository | the name of the repository for the image, which should contain a suitable Run-Time System environment for the application (this is typically an Enterprise Server/COBOL Server product). |
Common image tag | a tag name that is specified by the build and deploy repositories. Both build and deploy repositories should have a common tag. |
The Dockerfile is created and opened in the Dockerfile editor. If the project already contained a Dockerfile, it is renamed to Dockerfile.bak.
You might want to look at some of the Dockerfiles supplied with the Enterprise Developer container demonstrations for guidance on the sort of changes to make.