-
Notifications
You must be signed in to change notification settings - Fork 53
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
Compile binaries to avoid GLIBC missmatch error #176
Conversation
if that is the problem we need to fix that in the pre-compiled binary's. Building them from scratch just explodes the container size and its layers for no good reason for the end user. If you love your disk you don't want to do this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably the good solution here would be to update the Debian variant to bookworm
or bookworm-slim
. This version should have compatible GLIBC version.
Edit: Note to myself, we should also update esp-template
with this.
If size and layers is a problem, can use multi staged Docker builds. I personally prefer compiling all the stuff rather than download unsigned binaries from the web ... |
Why do you dislike unsigned binaries? Also, having the version of every crate hard-coded is very inconvenient, as we would need to update them every release. |
Just created #177 which solves the GLIBC error |
They can be malware ...
Should be using version to avoid break compatibility and to do reproducible builds |
If you are unsure about binary's that come from the official GH releases, you may want to look at other tools, as this devcontainer is not created for that use-case in mind. The goal's of this devcontainer is not to create a reproducible tool-chain in the first place( it can be that but only if other goals don't suffer to much here) , rather it is more optimized for separation of concerns and trying to be lightweight overall, and get a user a working tool-chain without much hassle, though the 2nd point is still a thing that needs more improvement. Some people are trying nix packages for immutable build systems, that may be an better alternative for you. Though this is i think a pretty bumpy road that is not just a thing everybody will be able to do.
This is the same for the rust compiler version you are installing here. We are working on fixed prebuild containers with locked version, to specific xtensa and nightly versions and in some form they already exist on dockerhub but they also need some more improvement. If you need that in your project i suggest not using this current devcontainer. |
We used to sign
I agree with what @Vollbrecht mentioned, you can always modify your generated template Dockerfile |
I will close this issue in favor of #177 |
Compile espup, ldproxy espflash and esp-web-flash-server to avoid GLIBC missmatch error.
Seems some binaries are published with newer GLIBC version which bullseye doesn't support.
Is cargo-espflash needed?