Skip to content

This project shows how to publish and pull application container image to Azure Container Registry service. The example app is MRN Python WebSocket with Version 2 Authentication RTO.

License

Notifications You must be signed in to change notification settings

LSEG-API-Samples/Article.WebSocket.Azure.ContainerRegistry

Repository files navigation

How to Deploy WebSocket Application To Azure Container Registry Repository

  • version: 1.0.0
  • Last update: Jan 2025
  • Environment: Docker and Azure CLI
  • Prerequisite: Access to Azure

Introduction

This project shows a step-by-step guide to public a container application to Microsoft Azure Container Registry repository. I am reusing the WebSocket API MRN Python examples application (RTO with Version 2 Authentication) as an example Docker image application. However, the concept and main logic can be applied to any technologies that support containerization.

Note:

  • My Azure Account is based on my Visual Studio Enterprise Subscription service which is may be different from your Azure account type.
  • The Azure Portal website UI/UX are subjected to change.

Introduction to Azure Container Registry

Azure Container Registry is Microsoft own container hosing platform (the same as Docker's dockerhub). The repository handles private Docker/OCI - Open Container Initiative images and artifacts with a fully managed, geo-replicated instance of OCI distribution. Developers can build, store and manage containers/artifacts to connect to across Azure services such as Azure Kubernetes Service (AKS), Azure App Service and much more.

The service also lets Developers/DepOps streamline building, testing, pushing, and deploying images with Tasks. The example is developers can targeting a container registry from a continuous integration and continuous delivery (CI/CD) tool such as Azure Pipelines or Jenkin.

figure-1

This project shows the first step which is how to set up an image registry, upload an application image to Azure and how to pull it to a local environment.

Prerequisite

This project requires the following software and account on your machine.

  1. RTO Access credentials (Version 2 - Service ID) with MRN data permission.
  2. Microsoft Azure account.
  3. Azure CLI application.
  4. Docker desktop application.
  5. Internet connection.

Please contact your LSEG representative to help you to access the RTO account and MRN service.

Project Development Detail

Please check Azure_devdetail.md document.

Next Steps

That brings me to the end of this project. This project shows only step-by-step guide for the basic tasks such as set up Azure Container Registry repository, push your local application image to Azure, and pull an image back to your machine. There are more tasks that help you improve container lifecycle management like the following:

You can find more information on the following Azure resources pages

Please note that your application image does not limit to the WebSocket API/Real-Time APIs or Machine Readable News data, any applications that support containerization can be utilized Azure Container Registry service.

Reference

For further details, please check out the following resources:

For any question related to this article or the LSEG APIs, please use the Developer Community Q&A Forum.

About

This project shows how to publish and pull application container image to Azure Container Registry service. The example app is MRN Python WebSocket with Version 2 Authentication RTO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published