Closed TheChymera closed 6 years ago
I have a feeling like this is none of gebuilders business. We could try to remove stuff the image does not necessarily need, but this only postpones the problem. Maybe note somewhere: "adapt docker storage baseize size if you plan on building oversized images."
Yeah, I was also on the fence regarding in how far we should micromanage our deps. we could just pin it to the known issues.
I think at most we could bail out earlier, if we notice the image is too large.
that would also involve docker basesize monitoring, if we do anything at all about it, I'd favor a more Pythonic approach where we ask for forgiveness, not for permission. Given the general duration of builds large enough to cause problems, I don't think saving 5' here is really that big a deal.
I added an example pre hook for gebuilder /path/to/.gentoo docker_image
to address this issue.
The SAMRI .gentoo docker_image generation process, fails with:
This can be fixed by running (adapted from this guide):
@Doeme any idea how we could more elegantly/automatically deal with this? Perhaps checking the exit status of
docker build -t ...
and attempting to resize the baseimage if it fails?