Create the Contract Manager image

This section describes the process of creating a Docker image for Contract Manager.

To create the Contract Manager image, follow these steps:

  1. Unpack the KCM installation package on the Docker host.

  2. Copy the template Docker file InstallServer\Dockerfiles\example-contract-manager to the extracted InstallServer folder and rename it.

  3. Find the FROM instruction in the Docker file and edit the name of the prerequisite image.

  4. Find the RUN instruction in the Docker file and edit the parameters of AddContractManager.exe.

  5. Find the ENTRYPOINT instruction in the Docker file and edit, add or remove the parameters of StartContractManager.exe. This is a partial list of parameters, which are fixed on the image. When a container is started, the remaining parameters will be supplied and appended to this list.

    If a parameter references a file, this file should be accessible from the container when it is started. For example, you can add a COPY instruction to the Docker file to embed the file on the image.

  6. From the InstallServer folder, run the following Docker command: docker build -t <image-name> -f <docker-file> . If any error occurs during the "Docker build" command, then the Docker build needs to be started again from the beginning.

The template Docker file uses AddContractManager.exe to install the KCM Contract Manager on Docker. This procedure is similar to the non-Docker installation, except that for a Docker installation the value of the Deploy!Docker parameter of AddContractManager must be set to True.

You can find the full list ofAddContractManager.exe parameters in the Parameters section of this guide.