spm-docker icon indicating copy to clipboard operation
spm-docker copied to clipboard

WIP: Add "slim" version

Open octomike opened this issue 6 years ago • 2 comments

This is my test to "slim" down the rather huge docker images. My primary focus is to create a container that works well on headless HPC systems (singularity support and no need for GUI).

  • only install libxt6 instead of xorg
  • wipe some matlab archives before installation
  • remove some GUI-related and GPGPU related libraries
  • remove map tiles

There are probably much more things that could be wiped from the MCR or tuned but right now I end up with a roughly 900MB flat singularity image and that's already an improvement.

octomike avatar May 23 '19 08:05 octomike

This escalated a little and I also wiped:

  • non-english localization
  • libcef (chrome embedded)
  • opengl*
  • jxbrowser
  • web-resources for various Matlab toolboxes

Singularity image is down to 720MB, Docker virtual size is 1.89GB as compared to 4.81GB.

octomike avatar May 23 '19 12:05 octomike

With MATLAB Runtime R2021a, one can select which toolboxes to install:

cat <<EOF >installer_input.txt 
mode silent
destinationFolder /v910
agreeToLicense yes
product.MATLAB_Runtime___Core true
product.MATLAB_Runtime___Numerics true
EOF
./install -inputFile installer_input.txt

It seems that a number of files and directories listed here for removal can still be removed after this installation.

gllmflndn avatar Apr 14 '21 16:04 gllmflndn