Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path warnings when Matlab runs inside Docker container. #1

Open
benjamin-heasly opened this issue Feb 14, 2017 · 0 comments
Open

Path warnings when Matlab runs inside Docker container. #1

benjamin-heasly opened this issue Feb 14, 2017 · 0 comments

Comments

@benjamin-heasly
Copy link
Collaborator

When Matlab starts inside a Docker container, we often seen warnings about missing items on Matlab's path. For example, like this, from our Jenkins server:

< M A T L A B (R) >
Copyright 1984-2015 The MathWorks, Inc.
R2015b (8.6.0.267246) 64-bit (glnxa64)
August 20, 2015

[�Warning: Name is nonexistent or not a directory:
/usr/local/MATLAB/from-host/toolbox/matlab/appdesigner/appdesigner]� 
[�Warning: Name is nonexistent or not a directory:
/usr/local/MATLAB/from-host/toolbox/matlab/testframework/performance]� 
[�Warning: Name is nonexistent or not a directory:
...

These warnings happen when Matlab's pathdef.m refers to directories that are not present inside the Docker container. This can happen for user directories that exist on the host, but not inside the container. It can also happen for internal Matlab directories that differ between Matlab versions.

We think that these warnings are not harmful because we use ToolboxToolbox to reset the Matlab path right after these warnings occur, in startup.m.

We might be able to avoid these warnings by paring down the pathdef.m that we use inside the container. We would need to find a minimal set of folders that Matlab requires for basic functioning, and that exist in all Matlab versions. Finding this would take some trial and error -- if such a set even exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant