3 ms·
My kind of nerd humor but I read the article only to find that the question I had going into it is not answered: How large might those containers (with/without
by _blk 2y ago
My kind of nerd humor but I read the article only to find that the question I had going into it is not answered: How large might those containers (with/without community) get?
Who's taking the nerd-snipe bait? ;)
- diggan 2y ago> How large might those containers (with/without community) get? Thrown together awk summing alpine main repository as of v3.21: awk -F ':' '/^I:/ { sum += $2 } END { print sum }' APKINDEX | numfmt --to=iec --suffix=B Returns 18GB. Author landed on 98.5% of packages being installable together, ~17.7GB in total, once installed. Community ends up being 100GB with 97.8%, so 97.8GB and final size ends up being ~115GB. Probably not even the largest image out there, but large enough to be too large :)
- AlotOfReading 2y agoOnly twice as large as the "minimal" dev images I have to work with.
- chamlis 2y agoAuthor here. I did run these numbers, I guess I just didn't think to write them up. I've recomputed them for Alpine 3.21 here. Maximising the number of packages gives 5492/5536 packages (99.2%) for just main, with a total install size of 17.03GiB. Including community gives 25026/25383 packages (98.6%) with a total install size of 107.85GiB. If we instead maximise the total installed size directly, we install 5428/5536 (98.0%) packages from main, with a total install size of 17.06GiB. Including community gives 24711/25383 packages (97.4%) with a total install size of 110.36GiB. Of course, if you're building a container, it would be redundant to install a kernel, so these numbers are somewhat inflated.
- _blk 2y agoAwesome, thanks :D Didn't think it'd be so little. I'd have guessed 4x that.
- yjftsjthsd-h 2y ago> Of course, if you're building a container, it would be redundant to install a kernel, so these numbers are somewhat inflated. Depends what the container is for; I've used containers to build bootable OS images and had to explicitly install kernel and associated packages. Obviously that's a weird edge case, but if we're discussing installing as many packages as possible we're already off the beaten trail.