bld.bat IacceptEULA win_x64 app
bld.bat runs the following docker build command:
docker build
--tag microfocus/extend-app:win_10.5.0_x64
--build-arg BASEIMAGE=microfocus/extend:win_10.5.0_x64
--build-arg EXTEND_VERSION="10.5.0"
--build-arg APPCONTAINERDIRECTORY="C:\...\containerization\AppContainerDirectory"
--file Dockerfile_win_x64_app
.
Where:
The Dockerfile_win_x64_app file contains the following commands to create the application image:
# Name of the repository tag used to create the application image
# Can be overridden with the --build-arg option in bld.bat
ARG BASEIMAGE=${BASEIMAGE}
# Use the base extend image to create the application image
FROM ${BASEIMAGE}
# Default Dockerfile values
# Values can be overridden with the --build-arg options in bld.bat
# These need to come after the FROM command or else they will not have a value
ARG EXTEND_VERSION=${EXTEND_VERSION}
ARG APPCONTAINERDIRECTORY=${APPCONTAINERDIRECTORY}
# Embed the label information into the application image for identification.
# This can be viewed with docker image inspect <image-id>
LABEL vendor="Micro Focus" \
com.microfocus.name="extend-app" \
com.microfocus.version="$EXTEND_VERSION" \
com.microfocus.eula.url="https://supportline.microfocus.com/licensing/lvcontract.aspx" \
com.microfocus.is-base-image="false"
# Use cmd.exe
SHELL ["cmd", "/S", "/C"]
# Copy the local application directory to the root directory of the image
COPY ["AppContainerDirectory", "C:/AppContainerDirectory/"]
# Set the starting directory when the image is run
WORKDIR C:/
If bld.bat runs without errors, you can use the following command to list all the images:
docker images
The application image has the following repository and tag name, including the suffix -app on the repository name to differentiate it from the base image:
| REPOSITORY | TAG |
|---|---|
| microfocus/extend-app | win_10.5.0_x64 |