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

Prune unused modules from dynamic-link #19

Open
henriquesimoes opened this issue Sep 11, 2023 · 1 comment · May be fixed by #59
Open

Prune unused modules from dynamic-link #19

henriquesimoes opened this issue Sep 11, 2023 · 1 comment · May be fixed by #59
Labels
enhancement New feature or request

Comments

@henriquesimoes
Copy link
Collaborator

henriquesimoes commented Sep 11, 2023

dynamic-link and no-build targets use a trivial copy all from /opt, leading to unused modules and unused build artifacts to be copied to the resulting IOC image.

Any level of pruning could easily and greatly improve the final image size.

Discussion started by @ericonr in #15 (comment)

@ericonr
Copy link
Member

ericonr commented Sep 11, 2023

Possible strategies:

  • list of used modules in a docker-compose variable
  • list of used modules taken from original RELEASE file before it's replaced
  • prune directories at the /opt/modules and /opt/modules/areaDetector levels when they don't appear in lddoutput for all executables/libraries in IOC / final directory (for no-build mode)

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

Successfully merging a pull request may close this issue.

2 participants