-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Request for Distroless Image Supporting GLIBC-2.39 #1618
Comments
We follow debian to keep our maintenance burden minimal. So a glibc version upgrade is probably unlikely until debian13 (2025 sometime?). I believe canonical and chainguard might have some options for you especially if you're looking for commercial support. You can continue to use a debian based base image if you like by trying rules_distroless to build it on your own using bazel? |
After further investigation and experimentation, I've identified a workaround for the GLIBC version discrepancy issue encountered with our application in the Distroless container environment. The core of the problem lies in the mismatch between the GLIBC version available in our devcontainer environment and the version present in the gcr.io/distroless/cc-debian12 image, which is older. Here are the approaches considered and the chosen workaround:
Chosen Workaround: We decided to go with the second option: modifying our Dockerfile to build our application directly within the Docker build process. This decision was made to ensure immediate compatibility and control over the build environment without the need to downgrade our development tools or wait for external updates. It does increase our build workload, but it's a trade-off we're willing to accept for ensuring that our application runs smoothly in our Distroless container environment. This workaround may be revisited in the future as external dependencies and environments evolve. For now, it offers a viable path forward for our project. I hope this insight helps others facing similar issues. Adjusting the build process to align with the target runtime environment can often resolve such compatibility challenges. |
This is a common issue and typically you will build in an environment with an older glibc to compensate, especially if the build was intended to ever be distributed for use outside of a container. Requesting glibc 2.39 specifically is pointless. By the time this issue is resolved, you'll have the same problem as you're building with a newer version of glibc than the next distroless upgrade would offer. However, you don't actually need anything specific to these versions of glibc, and you can avoid building on older environments provided you can build with |
@polarathene thank you very much that helped. zigbuild can be integrated into your rust project in Cargo.toml like this:
Don't forget to install zig: But that approach also comes with some overhead when building for multiple targets with different architectures on DevOps site. |
Hello Distroless Team,
I am currently working on a project that heavily relies on the Distroless images for deploying lightweight containers. Our application, specifically requires GLIBC version 2.39 to run properly. However, we've encountered compatibility issues due to the GLIBC version available in the current Distroless images.
Given the importance of GLIBC for many applications and the potential for similar issues across various projects, I kindly request the addition of a Distroless image variant that includes support for GLIBC-2.39. This update would greatly benefit not only our project but also other developers facing similar challenges.
The need arose when deploying our Rust application using the
gcr.io/distroless/cc-debian12
image. We encountered runtime errors indicating that the required GLIBC version (2.39) was not found. This version mismatch prevents our application from running in the desired lightweight and secure environment that Distroless images provide.We appreciate the effort and dedication that goes into maintaining these images and understand that supporting a new GLIBC version might require careful consideration and testing. Nonetheless, we believe that updating the GLIBC version could enhance the compatibility and usability of Distroless images for a wider range of applications.
Thank you for considering this request. We look forward to any updates or suggestions on how we might work around this issue in the meantime.
Best regards,
Albert
The text was updated successfully, but these errors were encountered: