-
Notifications
You must be signed in to change notification settings - Fork 19
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
docker build system eats up disk space on local builds machine #119
Comments
Broadening scope of this issue: |
Would adding
Usually you don't want to do this in the entrypoint, because otherwise you have erased information that might be useful to go explore when debugging failed (or even successful) |
Maybe? I will try another build later and see it if helps, thanks for the tip |
Thanks for that tip @gobengo That appears to solve my problem, however, the build fails on the cheapest digital ocean droplet (25GB storage) because it runs out of space (it also takes insanely long). Any ideas? Should I just build the "hard way" since I'm spinning up a DO droplet anyway? Maybe I could create the droplet from our docker hub image? |
I'm pretty sure that in here were building the kernel from source and
plenty of other packages too. I'm sitting here in an Embedded Linux course
and the system recommendations for doing the same were 4 cores, 16Gb
memory, and 100Gb storage, and all on bare metal.
Running outside of docker may help a bit, but not that much. Overhead of
Linux containers shouldn't be that much (compared to the virt layer that
you have no choice about because cloud).
Try the same way on a more expensive droplet.
…On Sat, Mar 10, 2018, 3:11 PM grant_____ ***@***.***> wrote:
Thanks for that tip @gobengo <https://github.com/gobengo> That appears to
solve my problem, however, the build fails on the cheapest digital ocean
droplet (25GB storage) because it runs out of space (it also takes insanely
long). Any ideas? Should I just build the "hard way" since I'm spinning up
a DO droplet anyway? Maybe I could create the droplet from our docker hub
image?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKfBhMJ0MK-L53ShjYOuyTsT_Fnzuk-ks5tdF29gaJpZM4RDO4s>
.
|
Can we add an option to automatically clean up the docker container after successfully building the firmware? Should this go at the end of the entrypoint.sh or must it be run outside the container? Ideally, it would run only on a "successful" build and would only delete or modify the container and image just used to build that image.
The text was updated successfully, but these errors were encountered: