Skip to content

Add MATLAB_UPDATE argument to dockerfile #122

Open
@PVDecker1

Description

@PVDecker1

I would consider this an enhancement request.

There are cases where it is useful to test/troubleshoot code across release updates, but none of the dockerfiles have a means of installing a specific update of any given release.

It can be done fairly simply by adding a MATLAB_UPDATE argument, then appending it to MATLAB_RELEASE during the mpm call. That is what I do to accomplish update-specific MATLAB builds at least, although I would prefer TMW implement this behavior.

Activity

michaelmcdonnellmw

michaelmcdonnellmw commented on Oct 4, 2024

@michaelmcdonnellmw
Member

Hi @PVDecker1, thanks for raising this enhancement request, I will pass it on to the dev to to instigate

josmartin

josmartin commented on Oct 7, 2024

@josmartin
Member

@PVDecker1 Just want to make sure you are aware of the following syntax for mpm where you add Un to the end of the release argument to specify the release update you would like ...

$ ./mpm install --destination=`pwd` --release=R2024aU4 MATLAB
Installing with the following parameters:
--destination=/tmp/test-install
--doc=false
--release=R2024aU4
--products=MATLAB
---------------------------------------------
The following MathWorks Products are licensed under the The MathWorks, Inc. Software License
Agreement, available in the installation of the MathWorks Product or in the virtual machine image.
MATLAB

Products will be installed to: /tmp/test-install
Starting install
Finished install
PVDecker1

PVDecker1 commented on Oct 7, 2024

@PVDecker1
Author

I am aware that mpm can do this directly, but the matlab-deps tags and mpm do not utilize the same nomenclature, as passing r2024aU2 to the dockerfile would not make it past the FROM statement. The same goes for OS specific installs, as I cannot pass r2024a-ubi since that succeeds at the FROM statement, but is ignored during the mpm call, unless the latter is by design.

rebolloluis

rebolloluis commented on May 2, 2025

@rebolloluis

+1 to this. It took me a couple of hours of online research in forums, etc, to finally find a way to build a custom image for a specific MATLAB update for 2024a. Thank you @PVDecker1 for raising the issue and sharing how to workaround this.

I would love to be able to use it in the docker file as suggested in this answer years ago.

added a commit that references this issue on May 2, 2025
rebolloluis

rebolloluis commented on May 2, 2025

@rebolloluis

FYI I opened a PR just to show others with the same issue how to implement this functionality in the Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @josmartin@rebolloluis@PVDecker1@michaelmcdonnellmw

      Issue actions

        Add MATLAB_UPDATE argument to dockerfile · Issue #122 · mathworks-ref-arch/matlab-dockerfile