Creating a custom Docker-based container of Matlab and additional toolboxes
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Maksims Abalenkovs
 el 14 de Mzo. de 2022
  
    
    
    
    
    Comentada: Maksims Abalenkovs
 el 14 de Mzo. de 2022
            I'm on a mission to create a custom Docker-based Matlab container with additional toolboxes such as
- Matlab Coder,
- Parallel Computing Toolbox,
- Statistics and Machine Learing Toolbox
I'm "going by the book" using the MathWorks example. The only changes I made to the original Dockerfile are adding the toolboxes:
# Run mpm to install MATLAB in the target location and delete the mpm installation afterwards
RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm && \ 
    chmod +x mpm && \
    ./mpm install \
        --release=${MATLAB_RELEASE} \
        --destination=/opt/matlab \
        --products MATLAB MATLAB_Coder Parallel_Computing_Toolbox Statistics_and_Machine_Learning_Toolbox && \
    rm -f mpm /tmp/mathworks_root.log && \
    ln -s /opt/matlab/bin/matlab /usr/local/bin/matlab
To build the container I issue the standard command:
docker build -t matlab:r2021b .
However, my build fails with the MPMDownloader Unzip Error:
docker build -t matlab:r2021b .
[+] Building 633.4s (7/9)
 => [internal] load build definition from Dockerfile                                                                                                     0.0s
 => => transferring dockerfile: 2.48kB                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                          0.0s
 => [internal] load metadata for docker.io/mathworks/matlab-deps:r2021b                                                                                  1.4s
 => [auth] mathworks/matlab-deps:pull token for registry-1.docker.io                                                                                     0.0s
 => [1/5] FROM docker.io/mathworks/matlab-deps:r2021b@sha256:6a793774179b9c187672ca41d9eae533ec3699d8912085d2bbbb4a7eb7f55de2                            0.0s
 => CACHED [2/5] RUN export DEBIAN_FRONTEND=noninteractive && apt-get update &&     apt-get install --no-install-recommends --yes         wget           0.0s
 => ERROR [3/5] RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm &&     chmod +x mpm &&     ./mpm install         --release=r2021b         --des  631.9s
------
 > [3/5] RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm &&     chmod +x mpm &&     ./mpm install         --release=r2021b         --destination=/opt/matlab         --products MATLAB MATLAB_Coder Parallel_Computing_Toolbox Statistics_and_Machine_Learning_Toolbox &&     rm -f mpm /tmp/mathworks_root.log &&     ln -s /opt/matlab/bin/matlab /usr/local/bin/matlab:
#7 45.21 MathWorks Programs are licensed under the MathWorks Software License Agreement,
#7 45.21 available in the desktop installation of the MathWorks Programs or in the
#7 45.21 virtual machine image.
#7 45.21
#7 45.21 Installing with the following parameters:
#7 45.21 --destination=/opt/matlab
#7 45.21 --release=r2021b
#7 45.21 --products=Statistics_and_Machine_Learning_Toolbox Parallel_Computing_Toolbox MATLAB MATLAB_Coder
#7 45.21 ---------------------------------------------
#7 49.53 Validating selected products
#7 49.53 Starting install...
#7 363.9 MPMDownloader Unzip Error: archive_read_data_block(): ZIP decompression failed (-5)
#7 366.2 MPMDownloader Unzip Error: archive_read_data_block(): ZIP decompression failed (-5)
#7 630.2 Error: Download failed. Check the network connection and retry.
------
executor failed running [/bin/sh -c wget -q https://www.mathworks.com/mpm/glnxa64/mpm &&     chmod +x mpm &&     ./mpm install         --release=${MATLAB_RELEASE}         --destination=/opt/matlab         --products MATLAB MATLAB_Coder Parallel_Computing_Toolbox Statistics_and_Machine_Learning_Toolbox &&     rm -f mpm /tmp/mathworks_root.log &&     ln -s /opt/matlab/bin/matlab /usr/local/bin/matlab]: exit code: 255
Any pointers on how to debug and solve this issue would be most welcome!
0 comentarios
Respuestas (2)
  Raymond Norris
    
 el 14 de Mzo. de 2022
        Hi @Maksims Abalenkovs, can you contact Technical Support (support@mathworks.com)?  They ought to be able to troubleshoot this for you.
  David Willingham
    
 el 14 de Mzo. de 2022
        This may not meet your exact requirements of building a container with just those products, but the MATLAB Deep Learning Container on dockerhub has these toolboxes (plus a few more):
Ver también
Categorías
				Más información sobre Cloud Integrations en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


