Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add "slim" version #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

WIP: Add "slim" version #2

wants to merge 1 commit into from

Conversation

octomike
Copy link
Contributor

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 octomike changed the title Add "slim" version WIP: Add "slim" version May 23, 2019
@octomike
Copy link
Contributor Author

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.

+ wipe all but Numerics/Core matlab archives before installation
+ manually remove a lot of GUI-related libraries and resources:
  - libQt
  - map tiles
  - non-english localization
  - libcef (chrome embedded)
  - opengl*
  - jxbrowser
  - web-resources for various matlab toolboxes
@gllmflndn
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants