Skip to content
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

Build skaffold-builder image from a pre-pushed base #3433

Merged

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Dec 23, 2019

This is meant to accelerate the integration tests: instead of installing all the cli tools on each build, we have a pre-pushed base image that contains all those tools.

What I've done is pre-built the gcr.io/k8s-skaffold/build_deps image and referenced it by digest.

Question: How can we do that in a more automatized way?

Signed-off-by: David Gageot david@gageot.net

@codecov
Copy link

codecov bot commented Dec 23, 2019

Codecov Report

Merging #3433 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted Files Coverage Δ
...affold/kubernetes/portforward/kubectl_forwarder.go 68.29% <0%> (+2.43%) ⬆️

@balopat
Copy link
Contributor

balopat commented Jan 6, 2020

This is meant to accelerate the integration tests: instead of installing all the cli tools on each build, we have a pre-pushed base image that contains all those tools.

What I've done is pre-built the gcr.io/k8s-skaffold/build_deps image and referenced it by digest.

Question: How can we do that in a more automatized way?

How about using artifact caching and use skaffold itself to build & push the build_deps? That will lose a couple of seconds on each build but not full rebuilds of the deps.

@nkubala
Copy link
Contributor

nkubala commented Jan 8, 2020

how will we know when we need to rebuild the base image here? I guess it's not really a huge deal cause we're probably not updating build tools very often.

Makefile Show resolved Hide resolved
@dgageot dgageot force-pushed the faster-skaffold-builder branch 2 times, most recently from d790bff to 4b03792 Compare January 10, 2020 12:37
@dgageot
Copy link
Contributor Author

dgageot commented Jan 10, 2020

@nkubala I added a script that updates deploy/skaffold/Dockerfile. Also make checks now verifies that this file is up to date.

@dgageot dgageot force-pushed the faster-skaffold-builder branch 5 times, most recently from c2676ca to 55ec3e4 Compare January 17, 2020 08:35
@dgageot
Copy link
Contributor Author

dgageot commented Jan 17, 2020

Hey @nkubala can you TAL at this one?

Signed-off-by: David Gageot <david@gageot.net>
@nkubala nkubala merged commit d11a906 into GoogleContainerTools:master Jan 21, 2020
balopat added a commit to balopat/skaffold that referenced this pull request Jan 31, 2020
…ter-skaffold-builder"

This reverts commit d11a906, reversing
changes made to 29a6f60.
tejal29 added a commit that referenced this pull request Jan 31, 2020
Revert "Merge pull request #3433 from dgageot/faster-skaffold-builder"
dgageot added a commit to dgageot/skaffold that referenced this pull request Feb 3, 2020
…affold-builder

Signed-off-by: David Gageot <david@gageot.net>
kissmikijr pushed a commit to kissmikijr/skaffold that referenced this pull request Feb 3, 2020
…ter-skaffold-builder"

This reverts commit d11a906, reversing
changes made to 29a6f60.
kissmikijr pushed a commit to kissmikijr/skaffold that referenced this pull request Feb 3, 2020
…ter-skaffold-builder"

This reverts commit d11a906, reversing
changes made to 29a6f60.
dgageot added a commit to dgageot/skaffold that referenced this pull request Feb 4, 2020
…affold-builder

Signed-off-by: David Gageot <david@gageot.net>
dgageot added a commit to dgageot/skaffold that referenced this pull request Feb 4, 2020
…affold-builder

Signed-off-by: David Gageot <david@gageot.net>
kissmikijr pushed a commit to kissmikijr/skaffold that referenced this pull request Feb 8, 2020
…affold-builder

Signed-off-by: David Gageot <david@gageot.net>
kissmikijr pushed a commit to kissmikijr/skaffold that referenced this pull request Feb 8, 2020
…affold-builder

Signed-off-by: David Gageot <david@gageot.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants