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 in an empty directory.

  2. Copy the template Docker file InstallServer\Dockerfiles\example-contract-manager next to the InstallServer folder in the otherwise empty directory.

    The template contains multiple variables between that you have to populate with correct data before this Docker file can be used. See the comments in the file for instructions and suggestions. In particular, take notice of the parameters of AddKCM.exe, AddControlCenter.exe, AddContractManager.exe, StartControlCenter.exe, and the entry point with StartContractManager.exe.

    The parameters in the ENTRYPOINT instruction in the Docker file are only a partial list of parameters that are fixed on the image. When a container is started, additional parameters can be supplied. These will be 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.

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

The template Docker file uses AddKCM.exe to install KCM 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 AddKCM must be set to True.

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