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

[web, postorius] Fix libldap installation package group #704

Merged

Conversation

8Iue
Copy link
Contributor

@8Iue 8Iue commented Jun 17, 2024

Overview

The libldap package is not installed in the mailman-web:0.5 and postorius images despite being listed as a dependency in the Dockerfile. This issue arises because libldap is included in the .build-deps virtual package group, which is removed at the end of the build process, causing the package to be uninstalled.

This commit addresses the issue by moving libldap from the .build-deps virtual package group to the .mailman-rundeps virtual package group in both the web and postorius-Dockerfiles. This ensures that libldap remains installed in the final image, as it is now part of the runtime dependencies.

Changes:

  • Move libldap installation from .build-deps to .mailman-rundeps in postorius/Dockerfile;
  • Move libldap installation from .build-deps to .mailman-rundeps in web/Dockerfile.

These changes are necessary to ensure that the libldap package is available in the running containers, preventing runtime errors related to missing LDAP dependencies.

Comments

Closes #703

@maxking
Copy link
Owner

maxking commented Jun 17, 2024

This looks great, thanks for your PR!

Can you please also make the same changes in Dockerfile.dev files too? There are 2 more of those, one each for web and postorius

The libldap package is not installed in the mailman-web:0.5 and
postorius images despite being listed as a dependency in the Dockerfile.
This issue arises because libldap is included in the .build-deps virtual
package group, which is removed at the end of the build process, causing
the package to be uninstalled.

This commit addresses the issue by moving libldap from the .build-deps
virtual package group to the .mailman-rundeps virtual package group in
both the web and postorius Dockerfiles. This ensures that libldap
remains installed in the final image, as it is now part of the runtime
dependencies.

Changes:
- Move libldap installation from .build-deps to .mailman-rundeps in
  postorius/Dockerfile and postorius/Dockerfile.env;
- Move libldap installation from .build-deps to .mailman-rundeps in
  web/Dockerfile and web/Dockerfile.env.

These changes are necessary to ensure that the libldap package is
available in the running containers, preventing runtime errors related
to missing LDAP dependencies.

Signed-off-by: Antonio Rocco <[email protected]>
@8Iue 8Iue force-pushed the move-libldap-installation-to-mailman-rundeps branch from 59ebe3b to 1d883a7 Compare June 17, 2024 14:00
@8Iue
Copy link
Contributor Author

8Iue commented Jun 17, 2024

@maxking good point - For a cleaner commit history, I've amended the previous commit to also include the changes in the Dockerfile.dev files. Hope that helps!

@maxking maxking merged commit 82aa54a into maxking:main Jun 17, 2024
2 checks passed
@maxking
Copy link
Owner

maxking commented Jun 17, 2024

Thanks @8Iue!

@8Iue 8Iue deleted the move-libldap-installation-to-mailman-rundeps branch June 17, 2024 16:52
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.

[BUG] libldap package not installed in web and postorious 0.5 image
2 participants