Skip to content

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

Merged
polarathene merged 3 commits intodocker-mailserver:masterfrom
polarathene:fix/do-not-handle-state-for-disabled-services
Jun 5, 2022
Merged

fix: Only add state of enabled services for volume mount#2608
polarathene merged 3 commits intodocker-mailserver:masterfrom
polarathene:fix/do-not-handle-state-for-disabled-services

Conversation

@polarathene
Copy link
Copy Markdown
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
Copy Markdown
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 👍🏼

Comment thread target/scripts/startup/misc-stack.sh Outdated
@polarathene polarathene requested review from a team and wernerfred 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