-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
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
-
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).
-
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.
-
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.
- In the Dockerfile for the final image, add commands to copy the static library (
-
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.
-
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels