Skip to content

Conflated and incompatible use of ARG MATLAB_RELEASE #146

@BobFlapjack

Description

@BobFlapjack

Similar to #122, the MATLAB_RELEASE argument to the Dockerfile does not allow referencing any of the non-standard builds available at https://hub.docker.com/r/mathworks/matlab-deps. For instance, R2025a-ubuntu22.04.

The argument is used on lines 21, 28 and 61:

ARG MATLAB_INSTALL_LOCATION="/opt/matlab/${MATLAB_RELEASE}"

FROM mathworks/matlab-deps:${MATLAB_RELEASE}

--release=${MATLAB_RELEASE} \

The first is install location; probably irrelevant, but who wants "/opt/matlab/R2025a-ubuntu22.04" as an install path?
The second is the FROM call - accepts the platform-inclusive tag
The third is passed into the mpm install call: clearly going to error

I have to use Ubuntu 22.04 because 24.04 fails wget every time. I have not determined if this problem is MATLAB, Docker, Ubuntu, or my environment. But I do not care - the simple reality is that 24.04 does not work for me, so I use 22.04. But this means your Dockerfile is not grab-and-go. I have to fork/clone/copy-paste it, then learn Docker (🤮) to change a few things. Then a year later when matlab-batch does not accept my new batch token format, I have to manually merge your Dockerfile changes with my modified version

All that said, this stuff is great! Compared to figuring everything out myself, this saves me an incalculable amount of time and hair-pulling. Keep up the good work

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions