containers / build

another build tool for container images (archived, see https://github.com/rkt/rkt/issues/4024)
Apache License 2.0
342 stars 80 forks source link

Incremental build? #315

Open mixmastamyk opened 7 years ago

mixmastamyk commented 7 years ago

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,

cgonyeo commented 7 years ago

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.

mixmastamyk commented 7 years ago

Ok, sounds like that can help, thanks.

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

cgonyeo commented 7 years ago

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.

mixmastamyk commented 7 years ago

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.

cgonyeo commented 7 years ago

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