Skip to content
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

Images to make use of statically linked binaries to remove need for libc6-compat #377

Closed
chadlwilson opened this issue Sep 19, 2022 · 7 comments

Comments

@chadlwilson
Copy link

Please excuse my ignorance here if this is the wrong place to raise this, but thought it might be useful to have a placeholder folks could follow. Not sure if something can be done in this repo right now, or we would still be waiting on another part of the docker ecosystem.

Background

Current State (Sep 2022)

@tianon
Copy link
Member

tianon commented Sep 19, 2022

Agreed, it would be great to remove this dependency -- at the very least, we could move it to the dind images now that the CLI and Docker-in-Docker are separated (#369).

I just did some testing on the ctr builds we currently consume both in 20.10 and 22.06-rc and they do still exhibit the issue, so short of building ctr from source ourselves in the image (which I don't plan to do at this layer), we are a bit at the mercy of the upstream builds. 😞

@tianon
Copy link
Member

tianon commented Sep 19, 2022

at the very least, we could move it to the dind images now that the CLI and Docker-in-Docker are separated (#369)

Hmm, although there's a decent argument to be made for ctr existing in the CLI images, especially with https://github.com/moby/moby/labels/containerd-integration well-underway. 🤔

@chadlwilson chadlwilson changed the title Imges to make use of statically linked binaries to remove need for libc6-compat Images to make use of statically linked binaries to remove need for libc6-compat Sep 19, 2022
@chadlwilson
Copy link
Author

Thanks for replying and giving it a test - tried to do this myself in this repo, but got lost in the scripting here :-) Let's see how things go upstream; hopefully we have the right issues opened/pull requests underway to make this happen at some point.

@chadlwilson
Copy link
Author

Am I right in thinking after moby/moby#44659 that ctr should be static in 23.x?

@tianon
Copy link
Member

tianon commented Mar 13, 2023

Yeah! Just tested and 20.10 is still affected, but 23.0 looks fine! Will be sending a PR shortly. 💪

chadlwilson added a commit to gocd/gocd that referenced this issue Mar 15, 2023
@chadlwilson
Copy link
Author

Thanks, very nice! 🥳

Happy to close this unless we think there's a realistic chance of the underlying improvements getting back-ported to 20.10?

@tianon
Copy link
Member

tianon commented Mar 15, 2023

Yeah, I guess that's a fair point; the chances of backporting the fixes are indeed low. 👍

@tianon tianon closed this as completed Mar 15, 2023
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

No branches or pull requests

3 participants
@tianon @chadlwilson and others