Skip to content

Commit de46246

Browse files
committed
Add migration to MATLAB 2025b
1 parent bcd3606 commit de46246

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

images/Dockerfile.matlab

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
ARG MATLAB_RELEASE=r2024b
1+
ARG MATLAB_RELEASE=r2025b
22
FROM --platform=linux/amd64 ghcr.io/mathworks-ref-arch/matlab-integration-for-jupyter/jupyter-matlab-notebook:${MATLAB_RELEASE}
33

44
USER root
5-
6-
# install extra apps, add extra folder and fix ownership in case apt-get messed with it
5+
# install extra apps, add extra folder and fix ownership in case apt messed with it
76
ARG EXTRA_DIR=/opt/extras
8-
RUN df -h && apt-get update \
9-
&& apt-get install -y \
7+
RUN df -h && apt update \
8+
&& apt install -y \
109
htop \
1110
libnss-wrapper \
1211
curl \
@@ -17,12 +16,13 @@ RUN df -h && apt-get update \
1716
&& chown -R $NB_UID:$NB_GID $HOME ${EXTRA_DIR}
1817

1918
RUN df -h && pip install --no-cache-dir datalad 'h5py>3.3' zarr pyopenssl plotly jupyter_bokeh jupytext nbgitpuller datalad_container \
20-
datalad-osf dandi nibabel nilearn pybids spikeinterface neo \
21-
'pydra>=0.25' 'pynwb>=2.8.3' 'nwbwidgets>=0.10.2' hdf5plugin s3fs h5netcdf "xarray[io]" \
22-
aicsimageio kerchunk 'neuroglancer>=2.28' cloud-volume ipywidgets ome-zarr \
23-
webio_jupyter_extension https://github.com/balbasty/dandi-io/archive/refs/heads/main.zip \
24-
tensorstore anndata tensorflow && \
25-
rm -rf /tmp/*
19+
datalad-osf dandi nibabel nilearn pybids spikeinterface neo \
20+
'pydra>=0.25' 'pynwb>=2.8.3' 'nwbwidgets>=0.10.2' hdf5plugin s3fs h5netcdf "xarray[io]" \
21+
lxml kerchunk 'neuroglancer>=2.28' cloud-volume ipywidgets ome-zarr webio_jupyter_extension \
22+
tensorstore anndata tensorflow \
23+
xmlschema \
24+
&& pip install --no-cache-dir https://github.com/balbasty/dandi-io/archive/refs/heads/main.zip --no-deps && \
25+
rm -rf /tmp/*
2626

2727
# Install the required Toolboxes with user root
2828
# Optimization toolbox is a required dependency
@@ -32,13 +32,13 @@ ARG TOOLBOXES="Bioinformatics_Toolbox \
3232
Curve_Fitting_Toolbox \
3333
Deep_Learning_Toolbox \
3434
Econometrics_Toolbox \
35+
Financial_Toolbox \
3536
Image_Processing_Toolbox \
36-
Optimization_Toolbox \
37-
Statistics_and_Machine_Learning_Toolbox \
38-
Signal_Processing_Toolbox \
3937
Parallel_Computing_Toolbox \
40-
Financial_Toolbox \
38+
Signal_Processing_Toolbox \
39+
Statistics_and_Machine_Learning_Toolbox \
4140
Wavelet_Toolbox \
41+
Optimization_Toolbox \
4242
Deep_Learning_Toolbox_Converter_for_TensorFlow_models"
4343
RUN df -h && wget -q https://www.mathworks.com/mpm/glnxa64/mpm && \
4444
chmod +x mpm && \
@@ -48,15 +48,15 @@ RUN df -h && wget -q https://www.mathworks.com/mpm/glnxa64/mpm && \
4848
--products ${TOOLBOXES} && \
4949
rm -f mpm /tmp/mathworks_root.log
5050

51-
# Switch to NB_USER for addons and live-scripts installations
52-
USER $NB_USER
51+
# Switch to NB_UID for addons and live-scripts installations
52+
USER $NB_UID
5353

5454
## Adds add-ons and register them in the Matlab instance
5555
# Patch startup.m to automatically register the addons
5656
# The registration process simply iterate over all entries from the ADDONS_DIR folder
5757
# and add them to the "path"
5858
ARG ADDONS_DIR=${EXTRA_DIR}/dandi
59-
ARG STARTUP_SCRIPT=/opt/conda/lib/python3.11/site-packages/matlab_proxy/matlab/startup.m
59+
ARG STARTUP_SCRIPT=/opt/conda/lib/python3.13/site-packages/matlab_proxy/matlab/startup.m
6060

6161
# Generate MATLAB startup script
6262
RUN df -h && echo -e "\n\
@@ -84,8 +84,7 @@ end \n\
8484
clear" >> ${STARTUP_SCRIPT}
8585

8686
# Variables for addons management that are tied to a specific release or commit
87-
ARG ADDONS_RELEASES="https://github.com/NeurodataWithoutBorders/matnwb/archive/2c3a4e13c9504724c08f3d937c08c730accf7685.zip \
88-
https://github.com/schnitzer-lab/EXTRACT-public/archive/refs/heads/master.zip \
87+
ARG ADDONS_RELEASES="https://github.com/schnitzer-lab/EXTRACT-public/archive/refs/heads/master.zip \
8988
https://github.com/bahanonu/ciatah/archive/refs/heads/master.zip"
9089

9190
# Add add-ons for Dandi: create the addons folder and download/unzip the addons
@@ -98,7 +97,9 @@ RUN df -h && mkdir -p ${ADDONS_DIR} && \
9897
done
9998

10099
# Variables for addons management that always takes the last release
101-
ARG ADDONS_LATEST="https://github.com/emeyers/Brain-Observatory-Toolbox"
100+
ARG ADDONS_LATEST="https://github.com/NeurodataWithoutBorders/matnwb \
101+
https://github.com/MATLAB-Community-Toolboxes-at-INCF/Brain-Observatory-Toolbox \
102+
https://github.com/MATLAB-Community-Toolboxes-at-INCF/DeepInterpolation-MATLAB"
102103

103104
# Add add-ons for Dandi: detect/download/unzip the last release version
104105
RUN df -h && cd ${ADDONS_DIR} && \

0 commit comments

Comments
 (0)