build icon indicating copy to clipboard operation
build copied to clipboard

Incremental build?

Open mixmastamyk opened this issue 7 years ago • 5 comments

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,

mixmastamyk avatar Jun 24 '17 23:06 mixmastamyk

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.

cgonyeo avatar Jun 26 '17 18:06 cgonyeo

Ok, sounds like that can help, thanks.

I'm guessing acbuild is in maintenance now in favor of yet to be released OCI stuff?

mixmastamyk avatar Jun 27 '17 19:06 mixmastamyk

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.

cgonyeo avatar Jun 27 '17 20:06 cgonyeo

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.

mixmastamyk avatar Jun 28 '17 02:06 mixmastamyk

I do work for coreos, I've just switched teams since starting this project and finding time for it these days is hard

cgonyeo avatar Jun 28 '17 17:06 cgonyeo