Build MID Server Docker Image for Linux
Deploy Containerized MID Servers on Linux by creating a Docker image with the provided recipes. Containerized MID Server uses a Docker image of the MID Server that allows you to quickly deploy MID Servers at scale.
Avant de commencer
Role required: admin
![]() |
Prerequisites:
The host must use Docker engine and command-line interface (CLI) 20.10.4 or later.
Update the library to the newest version available, or at least the highest version with a security fix. If issues identified are part of a transitive dependency, find a version of the dependent library which includes a newer transitive version. If the transitive dependency cannot be upgraded by upgrading the dependent library, consider excluding the dependency and directly including a secure version.
Procédure
Que faire ensuite
$ docker rmi $(docker images --filter "dangling=true" -q --no-trunc)docker image
ls may show something similar to the
following:REPOSITORY TAG IMAGE ID CREATED SIZE
mid trackdiscocopper-10-09-2020_10-14-2021_2200 4542b6ab34af 21 seconds ago 1.01GB
<none> <none> 1cdae087a970 About a minute ago 1.38GB
docker image ls
shows the
following:REPOSITORY TAG IMAGE ID CREATED SIZE
mid trackdiscocopper-10-09-2020_10-14-2021_2200 4542b6ab34af About a minute ago 1.01GB
Launch Containerized MID Server
Containerized MID Server uses a Docker image of the MID Server that allows you to quickly deploy MID Servers at scale. MID Servers are deployed using orchestration tools like Docker Swarm.
Avant de commencer
Role required: admin
Prerequisites:
Linux hosts must use AlmaLinux distribution 64 bit architecture, and AlmaLinux distro is recommended.
The host must use Docker engine and command-line interface (CLI) 20.10.4 or later.
Remarque :Check docker availability by running the docker version command as administrator. See the the docker version command documentation for more information.
Procédure
Pass sensitive data to a containerized MID Server with Docker Secrets
You can configure containerized MID Servers with configuration parameters passed through environment variables or secret files.
Avant de commencer
Role required: Docker Swarm admin
Pourquoi et quand exécuter cette tâche
You can pass sensitive data, such passwords or certificates, into a containerized MID Server using Docker Secret. Setup and start Docker Swarm before using this procedure.
When creating deployments, ensure that the replicas are kept to 1.
Procédure
Pass sensitive data to a mutual authenticated containerized MID Server with Docker Secrets
You can configure containerized MID Servers with configuration parameters passed through environment variables or secret files.
Avant de commencer
Role required: admin
Role required: Docker Swarm admin
Pourquoi et quand exécuter cette tâche
If certificate based authentication is enabled on the instance, the MID Server can be configured to auto-validate using a mutual authentication client certificate (PEM file). This can be done via setting the full path to the PEM certificate file inside container with the MID_MUTUAL_AUTH_PEM_FILE environment variable. For example, you can update variable to MID_MUTUAL_AUTH_PEM_FILE= /run/secrets/certificate.pem in the mid.env file.
You can pass the PEM certificate file into a container using Docker or Kubernetes secret. The following is an example command to pass the PEM certificate file into a container: docker service create --name mid-service --secret mid-secrets.properties --secret <certificate-secret-name> --env-file mid.env <docker-tag or image-id>
The mutual PEM certificate is installed on the MID Server during initialization. MID Server then connects to the instance and auto-validates. When the MID Server connects to the instance with mutual authentication successfully enabled, you might observe some of the following entries in the MID agent log:
- Installed custom certificate into the MID keystore
- Configured MID to use mutual authentication
Procédure
Pass sensitive data to a containerized MID Server with Kubernetes Secrets
You can configure containerized MID Servers with configuration parameters passed through environment variables or secret files.
Avant de commencer
Role required: Kubernetest admin
Setup and start Kubernertes cluster before using this procedure. For more information on Kubernetes Secrets, see the Kubernertes secrets documentation.
When creating deployments, ensure that the replicas are kept to 1.
Procédure
Pass sensitive data to a mutual authenticated containerized MID Server with Kubernetes Secrets
You can configure containerized MID Servers with configuration parameters passed through environment variables or secret files.
Avant de commencer
Role required: Kubernetest admin
Prerequisites:
If certificate based authentication is enabled on the instance, the MID Server can be configured to auto-validate using a mutual authentication client certificate (PEM file). This can be done via setting the full path to the PEM certificate file inside container with the MID_MUTUAL_AUTH_PEM_FILE environment variable. You can pass the PEM certificate file into a container using Kubernetes secret.
The mutual PEM certificate is installed on the MID Server during initialization. MID Server then connects to the instance and auto-validates. When the MID Server connects to the instance with mutual authentication successfully enabled, you might observe some of the following entries in the MID agent log:
- Installed custom certificate into the MID keystore
- Configured MID to use mutual authentication
