Skip to content

Provide a "fast build" mode #1150

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

Closed
dgageot opened this issue Oct 12, 2018 · 1 comment
Closed

Provide a "fast build" mode #1150

dgageot opened this issue Oct 12, 2018 · 1 comment

Comments

@dgageot
Copy link
Contributor

dgageot commented Oct 12, 2018

When Skaffold is stopped and restarted, it has to rebuild all artifacts. Even if most builder have cache mechanism, it can be slow to realize that nothing has to be built. For example, docker build needs to be sent the whole context before even starting.

We could maybe keep a state on disk that lists the images that are built and the digest of the files that were used for the build. This way, when Skaffold is restarted, all it has to do is list the files for each artifact, compute a digest (locally) and trigger or not a rebuild.

Those checks could run in // and would benefit bigger projects.

A command line flag would enable this behavior that, by default, would be disabled to ensure the best possible consistency.

@balopat
Copy link
Contributor

balopat commented Mar 4, 2019

This is implemented in #1632.

@balopat balopat closed this as completed Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants