The Dockerfile.x86 File in the Docker Demonstration for the Enterprise Server Base Image

This topic lists and describes the Dockerfile.x86 file from the Docker demonstration for the Enterprise Server base image. The Dockerfile is listed in its entirety and a following table describes the various Dockerfile commands. The line numbers in the listings of the Dockerfile have been added to aid readability. They are not present in the supplied Dockerfile.

001  # Copyright (C) Micro Focus 2018. All rights reserved. 
002  
003  ARG ESTAG=
004  FROM microfocus/entserver:${ESTAG}
005  
006  ADD convsetx.ps1 "c:\convsetx.ps1"
007  RUN cd %ENTSRV_LOC% && \
008      bin\cblpromp.exe -J >env.prop && \
009      powershell -file "c:\convsetx.ps1" >envsetx.bat && \
010      envsetx.bat && \
011      del envsetx.bat && \
012      del env.prop && \
013      del "c:\convsetx.ps1"
014  
015  RUN echo COBDIR is %COBDIR%

The commands on the lines in this Dockerfile are as follows:

Lines Description
003 Defines a build argument passed by the docker build command.
004 Specifies that the base image to use is the image built from Dockerfile.
006 Copies the convsetx.ps1 PowerShell script to the image's filesystem.
007 - 013 Run a series of concatenated Windows commands to ensure that all environment variables set by the COBOL command prompt are available to applications in this image.
015 Displays on-screen the setting of the COBDIR environment variable (which specifies the installed location of Enterprise Server.