GitHub - mathworks/devcontainer-features: This repository contains the MATLAB Feature for using MATLAB in development containers. (original) (raw)

MATLAB Feature for Development Containers

Use the MATLAB Feature in this repository to add MATLAB®, Simulink®, and other MathWorks™ products to your development containers.

For more information about running MATLAB in dev containers, seeRun MATLAB in GitHub™ Codespaces.

Get Started

A development container Feature (GitHub) is self-contained code you can use to add functionality to your development container. You can add a feature to your development container by modifying devcontainer.json, the configuration file of the container. For instructions on creating a development container and adding a feature, see Create a Dev Container (VS Code Docs).

Use the MATLAB Feature to:

Usage

To use the MATLAB Feature, include it in your dev container by specifying the devcontainer.json configuration file with your desired MATLAB Feature Options.

For example, to install MATLAB R2024a with Symbolic Math Toolbox in a ubuntu base image, use this devcontainer.json configuration:

{ "image": "ubuntu:latest", "features": { "ghcr.io/mathworks/devcontainer-features/matlab:0": { "release": "r2024a", "products": "MATLAB Symbolic_Math_Toolbox" } } }

This configuration installs MATLAB R2024a in your dev container and adds the matlab executable to your PATH.

Codespaces:

Dev Containers:

Dev Container Features:


Copyright 2024 The MathWorks, Inc.