Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Incremental build? #315

Open
mixmastamyk opened this issue Jun 24, 2017 · 5 comments
Open

Incremental build? #315

mixmastamyk opened this issue Jun 24, 2017 · 5 comments

Comments

@mixmastamyk
Copy link

mixmastamyk commented Jun 24, 2017

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
Copy link
Member

cgonyeo commented Jun 26, 2017

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
Copy link
Author

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
Copy link
Member

cgonyeo commented Jun 27, 2017

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
Copy link
Author

mixmastamyk commented Jun 28, 2017

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
Copy link
Member

cgonyeo commented Jun 28, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants