There's always a trade off. You are willing to do more low level work "manually" assembling container images your way with apko. You are also willing to accept Alpine randomly exploding in your face :) Different people have different preferences in terms of what risks they will take. For example, I wouldn't use Alpine even if somebody paid me money to use it :) That's because Alpine is not a standard Linux distro and you need to be able to "own" it with all of it's gotchas and incompatibilities. Not everybody is capable of doing that. I know I'm not that good :-) In other cases people can't change their base images.
Re:Minify your container
by davidtpate on Wednesday August 03, 2022 @05:23PM
(#32336802)
Some form of tree-shaking type of thing would probably be quite handy for images, but yeah I'm a bit wary here as well. First thought would be what happens when it hits Out-of-Memory, DNS timeout, or loses network connectivity or another edge case that totally happens in Production.
Removing those code paths would not be a good thing, but I guess if you build your apps right you could just have your container orchestration system recover by replacing the Pod.
Re:Minify your container
by game-of-throws on Wednesday August 03, 2022 @05:59PM
(#32337081)
I wouldn't want anything killing pods every time there's a network timeout. That sounds like a quick way to turn a tiny problem into a huge problem.
Re:Minify your container
by password4321 on Wednesday August 03, 2022 @10:21PM
(#32338618)
The commercial version could include a small filesystem shim that tracked references to missing files and maybe even did some work to fill them back in over the network!
Surely we'd struggle to trust a super secure container that non-deterministically downloads code over the Internet.
Re:Minify your container
by hacknews20 on Thursday August 04, 2022 @03:56AM
(#32340357)
Uh oh, someone mentioned “shim” which means a hack to make something that shouldn’t work, work.
A containerizable project probably has its requirements known and well-specified? I think building on top of a base with a smaller unused surface is a better idea than using analysis that might backfire. These days I am using apko + melange for my personal images and they are super neat.