Skip to content

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

Merged
maxking merged 1 commit into
maxking:mainfrom
8Iue:move-libldap-installation-to-mailman-rundeps
Jun 17, 2024
Merged

maxking merged 1 commit into
maxking:mainfrom
8Iue:move-libldap-installation-to-mailman-rundeps

Conversation

@8Iue

@8Iue 8Iue commented Jun 17, 2024 •

Copy link
Copy Markdown
Contributor

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

maxking commented Jun 17, 2024

Copy link
Copy Markdown
Owner

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 <8lue@8lue.xyz>
@8Iue
8Iue force-pushed the move-libldap-installation-to-mailman-rundeps branch from 59ebe3b to 1d883a7 Compare June 17, 2024 14:00
@8Iue

8Iue commented Jun 17, 2024

Copy link
Copy Markdown
Contributor Author

@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
@maxking

maxking commented Jun 17, 2024

Copy link
Copy Markdown
Owner

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