Skip to content

Publish to Docker Registry

As per XOSP, our trading platform can easily be deployed using Docker containers. The following scripts facilitate creation the Docker images.

  • Docker-Publish.ps1 - Build a docker image for a component and push it to Docker Desktop and the registry.
  • Docker-Create.ps1 - Ensures that a repository exists for the image at the registry.
  • Docker-Params.ps1 - Used by Docker-Publish and Docker-Create. Not to be run directly from the command line.

Note that publishing images to a registry requires access to source code and also is not allowed under XOSP licensing. Contact Motif Markets for more information on obtaining the necessary licencing.

Currently these scripts only support private AWS ECR registries however we plan to broaden this to support other registries.

Note that by default, Windows restricts the running of PowerShell scripts downloaded from the internet. You can use the Unblock-File command in PowerShell to remove this restriction. For example, from within repository folder:

Terminal window
Get-ChildItem *.ps1 | Unblock-File

Each component’s source repository includes a Docker-Publish.ps1 script. When run, it will generate a Docker image for that component (from source) and push it to both Docker engine and a Docker registry.

This enables changes to components to be easily tested in a full trading platform environment.

This script resides in the root folder of the source for each component and is run with no parameters. Note it requires that the Docker Engine be running.

Terminal window
./Docker-Publish.ps1

Ensures that a repository exists for the image at the registry.

This script need only be run once for each component at a registry.

Terminal window
./Docker-Create.ps1