Definition files for installing Matlab and Matlab Toolboxes in a container environment.
The definition files will also setup Matlab to connect to the CHTC license server. By using these definition files, you are agreeing to the terms and conditions for the use of Matlab as licensed by CHTC, for use at CHTC.
When submitting HTC jobs using this container, you MUST add
concurrency_limits = MATLAB:1to your submit file. Failure to do so may cause your or others' jobs to fail to obtain a license from the license server.
For more information on using the Matlab container on the HTC system, see the Matlab guide on our website.
These container recipes are compatible with Matlab version R2019b and onwards.
Our examples use R2022b.
There are two things you need to edit in the definition file to choose the version you want to use:
-
Choose the base container
The
Fromline specifies the base container to use. The syntax ismathworks/matlab-deps:<Matlab version>where you need to replace<Matlab version>with the version you want to use. -
Set
MATLAB_RELEASEin the "Quick Settings" sectionIn the "Quick Settings" section of the definition file, change the value of
MATLAB_RELEASEto the version that you are using. The syntax isMATLAB_RELEASE=<Matlab version>where you need to replace<Matlab version>with the one you are using. This version needs to match the version specified in theFromline, but does not include the operating system.
The toolboxes/features to install are defined using the variable MATLAB_PRODUCT_LIST in the "Quick Settings" section of the definition file.
The syntax for defining the product list is MATLAB_PRODUCT_LIST="MATLAB Toolbox1 Toolbox2" and so on, where you must include MATLAB and where the toolboxes are taken from chtc_licensed_toolboxes.txt.
For a full list of toolboxes, go to a link like the following: https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/mpm-input-files/R2022b/mpm_input_r2022b.txt.
(This specific link is for R2022b, but you can replace the version numbers in the link to get the list for other versions of Matlab.)
The list of toolboxes in chtc_licensed_toolboxes.txt is not all-inclusive. That is, there may be toolboxes in the full list above available for use because they are included the base license of Matlab. For example, the
Parallel_Computing_Toolboxis in the full list and not in the CHTC licensed list, but is still functional.