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

fix: Only add state of enabled services for volume mount #2608

Conversation

polarathene
Copy link
Member

Description

These services will no longer copy over state unless they are enabled.

The biggest offender here was ClamAV as it's database that is baked into the docker image is over 200MB and would copy over to every container instance with a volume mounted state directory, despite having the service disabled.

Fixes #2602

Type of change

  • Improvement (non-breaking change that does improve existing functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

These services will no longer copy over state unless they are enabled.

The biggest offender here was ClamAV as it's database that is baked into the docker image is over 200MB and would copy over to every container instance with a volume mounted state directory.
@polarathene polarathene added priority/low area/scripts service/security/clamav kind/improvement Improve an existing feature, configuration file or the documentation labels May 29, 2022
@polarathene polarathene added this to the v11.1.0 milestone May 29, 2022
@polarathene polarathene self-assigned this May 29, 2022
Copy link
Member

@georglauterbach georglauterbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@polarathene polarathene requested review from wernerfred and a team June 1, 2022 01:10
@polarathene polarathene merged commit d04acec into docker-mailserver:master Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/scripts kind/improvement Improve an existing feature, configuration file or the documentation priority/low service/security/clamav
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR]: misc-stack.sh should append directories only when relevant services are enabled
3 participants