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

Minimizing disk requirements for Travis. #25

Open
TheChymera opened this issue Jul 4, 2018 · 3 comments
Open

Minimizing disk requirements for Travis. #25

TheChymera opened this issue Jul 4, 2018 · 3 comments

Comments

@TheChymera
Copy link
Member

TheChymera commented Jul 4, 2018

Now that we're able to successfully build larger packages, it seems we can also easily surpass TravisCI's capabilitie.

I'm wondering whether there's anything more we can do to minimize the size of resulting docker images. Cleaning distfiles would definitely be one thing, but there's other things as well. I see we're already shipping a cleanportage.sh file which right now does nothing.

Right now and for as long as we're not struggling with significant USE flag updated and network bottlenecks at build time, I think it would be most sensible to always wipe everything that can be wiped for the specialization case. Where would you say this is best done, @Doeme ?

@Doeme
Copy link
Member

Doeme commented Jul 5, 2018

Probably in gebuilder/scripts/docker_image/default/99-cleanup.sh. I'm not sure what you want to clean up, though. The portage-tree should not be inside the image, as it is bind-mounted. Theoretically one could remove the build-time only dependencies (autoconf, ...), but I'm not sure on how to figure those out...

@TheChymera
Copy link
Member Author

I meant more along the lines of this. I looked inside the image and it looks like /usr/portage/distfiles/* aren't deleted.

Also, I was thinking of cleaning up disk space more generally? like after each specialization update? I'm guessing we want all images to be as small as possible, not just the Docker ones. What would be the best place for that? Here, between 30 and 99?

@Doeme
Copy link
Member

Doeme commented Aug 3, 2018

Yeah, seems reasonable. But: /usr/portage/ should be empty anyways, because they get bind-mounted from the stemgentoo, s.t. we do not need to download every package and the portage-tree NUM_IMAGES times.
If it isn't, that's a bug.

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

2 participants