-
Notifications
You must be signed in to change notification settings - Fork 208
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
Improve cacheability of Docker layers and add ca-certs to scratch image #2842
Improve cacheability of Docker layers and add ca-certs to scratch image #2842
Conversation
Commit 7f3f19e does not match "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
7f3f19e
to
6994eb4
Compare
Commit 7f3f19e does not match "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Commit 018b43f does not match "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
018b43f
to
18a08a4
Compare
18a08a4
to
8a205de
Compare
@@ -25,8 +25,10 @@ jobs: | |||
strategy: | |||
matrix: | |||
include: | |||
- name: cilium-cli | |||
- name: cilium-cli-ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way we can leverage the target
in docker build. as well don't need to append -ci
in various places.
8a205de
to
1602fe1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcofranssen Nice work Marco! I This sounds great!
It would be nice to add here some benchmarks in terms of before/after build times and resulting image sizes.
1602fe1
to
86ec7ef
Compare
Rebased the PR to fix the conflict on the recently bumped Go builder image. Would be great if we can merge this PR to prevent future merge conflicts and rework on my side. |
Don't really have time to do that, as that would require me to do changes to binary and such to have a representative benchmark for both old and new implementation. But if you understand docker image layering you will understand there are fewer layers to rebuild as the ones that are most likely to change are the last layers, therefore allowing to reuse the layers before that are most likely not to change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Marco Franssen <[email protected]>
…fic image Signed-off-by: Marco Franssen <[email protected]>
86ec7ef
to
0be3ce5
Compare
No description provided.