Running MATLAB Compiler SDK in docker image

11 次查看(过去 30 天)
Hi,
I'm prepring the migration from our local build infrastructure to Azure. Currently we are using MATLAB Compiler SDK to generate .NET .dll for our existing product. The current build server is a metal one with SDK installed using regular license. As the license is bound to the machine itself and we would like to use Azure the executing machine will be changing. Is there a possibility to use the MATLAB Compiler SDK in docker container running in the cloud? If it is how can I manage licenses for it. Many thanks for any help in advance.

回答(1 个)

Meet
Meet 2023-4-7
For accessing MATLAB on the cloud, you can use the MATLAB container available on Docker Hub. The MATLAB container will provides a simple and flexible solution to run MATLAB in cloud environments such as AWS or Microsoft Azure.
The MATLAB container includes:
  • An Ubuntu base image
  • MATLAB (no additional toolboxes)
  • Dependencies to run all MathWorks products
  • Software to enable interaction with the MATLAB desktop
To use the MATLAB container, you need:
  1. A host machine with Docker installed.
  2. A MATLAB license that is:
  • Valid for all the MathWorks products installed in the container.
  • Linked to a MathWorks Account.
  • Configured for cloud use. Individual and Campus-Wide licenses are already configured. For other license types, contact your license administrator. You can identify your license type and administrator by viewing your MathWorks Account. Administrators can consult Administer Network Licenses.
  • If you have a Concurrent license , you must supply the port number and DNS address of the network license manager when you run the container. Add this option to the docker run command when you start the container -e MLM_LICENSE_FILE=27000@MyLicenseServer.
Once the container is ready you can install the latest MATLAB updates or install additional toolboxes and add-ons in this container. For more information, see Install Updates, Toolboxes, Support Packages, and Add-Ons in Containers.
Then, you can save the container for later use to avoid having to reinstall your changes. For more information, see Save Changes in Containers.
For more details, please refer :
  1 个评论
Michal Sadowski
Michal Sadowski 2023-4-11
Thank you very much for your answer, I was worried about the license managment for Matlab SDK. I need to build .NET dll with the Matlab code I have, for this I need to use Matlab SDK I have the license for. The container will be running in Azure pipeline environment. I do not kow if the license will work becasue the container is recreated for every build and the license is checking some hardware settings and fix the license to it. I'll try to check it out thank you very much for help.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Containers 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by