Closed NicolasRouquette closed 3 months ago
hi @NicolasRouquette
The -browser
flag is an option meant for the ENTRYPOINT to the mathworks/matlab
container and is not a valid startup flag to the matlab
process it self.
The ENTRYPOINT for the mathworks/matlab:r2022b
container should be calling a script run.sh
we've written to support the various flags. run.sh
will already be on the PATH inside the container and you should be able to add it to your postStartCommand
as ./run.sh -browser
Could you give this a shot? In the meantime, I'll try to configure an environment on my end to try this as well.
hi @NicolasRouquette
mathworks-ref-arch/matlab-codespaces has been released with various .devcontainer
configurations to showcasing usage of DevContainers.
Please have a look at that repository and create an issue on that repository if there are any additional feature requests or suggestions.
Thank you!
fixed by https://github.com/mathworks-ref-arch/matlab-codespaces/commit/ddd5406
I would like to run Matlab in a container using a "Development Container"; see: https://containers.dev/
I know that I can start Matlab in a container using this mechanism: https://www.mathworks.com/help/cloudcenter/ug/matlab-container-on-docker-hub.html
When developing Matlab code where I have cloned a repository on the host, I have to specify a docker mount option to make my repository clone available in the container.
This is a lot simpler with the "Development Container"! With ".devcontainer/devcontainer.js" file that specifies the container image -- e.g. https://hub.docker.com/r/mathworks/matlab, I should be able to run Matlab in a container with either the "-browser" and have the Development Container automatically open a browser on the Matlab container.
I made a simple test here: https://github.com/NicolasRouquette/matlab-devcontainer
The Dev Container spec is simple:
With Visual Studio Code's https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers when I start the container and click on "Show Log",
It would be really nice if the Matlab image could run as a DevContainer.