build
build copied to clipboard
Incremental build?
The acbuild command doesn't seem to cache any of its actions. So every time I build a large image it takes several minutes just to update a few bytes in a script, for example. This really slows down debugging.
What's the roadmap for this area? Thanks,
This is something that I've wanted for a bit, and with script mode this should be possible, but I don't have time to work on this these days, so I can't really give a roadmap estimate.
One trick that can help is if you can structure your build to do long, expensive things first (e.g. apt get update && apt-get install blah
) and shorter more interesting things second (e.g. building your app) you can split it into two builds, one making a base image that the second build starts from, and you can just repeat the second build as you develop the image.
Ok, sounds like that can help, thanks.
I'm guessing acbuild is in maintenance now in favor of yet to be released OCI stuff?
acbuild can work with OCI images, and when OCI gets marked as v1.0 I intend to revisit this and get it working with the latest version of the spec. Other than that I don't really have much time for the project anymore.
There are also other options like umoci if you want to look around.
Thanks, it took a while to untangle, but that cut about 3+ minutes out of my 4 minute build.
Re: roadmap -- Sorry, I assumed you were on the coreos payroll due to acbuild being on the rkt page.
I do work for coreos, I've just switched teams since starting this project and finding time for it these days is hard