Skip to content

Add static Strict MIT compatible /usr/local/lib/musl-libc.so.1 and /usr/local/lib/includes/<musl> to final image #3

@reactive-firewall

Description

@reactive-firewall

Summary

The task involves adding a static version of the Strict MIT compatible musl libc library to the final Docker image. Specifically, the files to be included are /usr/local/lib/musl-libc.so.1 and the directory /usr/local/lib/includes/<musl>. This will enhance compatibility and ensure that the final image adheres to the required licensing standards.

Plan

  1. Set Up Alpine Pre-Image:

    • Use an Alpine-based Docker image as the build environment.
    • Ensure that necessary build tools and dependencies are installed (e.g., build-base, musl-dev).
  2. Build Static musl libc:

    • Download the musl libc source code.
    • Configure the build to create a static library.
    • Compile the library and verify that the static version is generated.
  3. Copy Static Library to Final Image:

    • In the Dockerfile for the final image, add commands to copy the static library (/usr/local/lib/musl-libc.so.1) and the includes directory (/usr/local/lib/includes/<musl>) from the Alpine pre-image to the final image.
  4. Update CI/CD Workflow:

    • Ensure that the CI/CD pipeline is updated to build the Alpine pre-image and the final image sequentially.
    • Add tests to verify that the static library is correctly included in the final image.
  5. Documentation:

    • Document the changes made, including any new dependencies or build steps, in the project’s README or relevant documentation files.

By following this plan, the project will successfully integrate the static musl libc library into the final Docker image while maintaining compliance with licensing requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions