Running MATLAB Compiler SDK in docker image

조회 수: 11 (최근 30일)
Michal Sadowski
Michal Sadowski 2023년 3월 16일
댓글: Michal Sadowski 2023년 4월 11일
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