-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
chore(Dockerfile): best practices #10708
chore(Dockerfile): best practices #10708
Conversation
Hi @maxime1907. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi! Thanks for your contribution. Indeed reproducibility is a good practice and we should aim to have the best reproducibility possible and I am all in team reproducibility in general. Although as you have noticed in your other PR we have failed to update a quite simple list of dependencies so I am not sure adding a bunch more of them is the right way to go. Also I don't expect for the most of apt deps version to really affects kubespray/ansible in a significant way, so I would not be favorable to pin all of those. Kubespray is designed to run on many kinds of system and I don't think that the majority of our users even use the docker image so it shouldn't matter that much what the version of ssh is on the user's system for instance and pinning every apt deps will just put more strain on the maintainers of kubespray for, IMO, little added value. Although the rest of the change about caching mounts and moving the RUN around to improve caching looks good indeed 👍 |
7606cad
to
e4f518d
Compare
Hi! Yes i understand your point of view so i have removed the pinned apt dependencies so should be good to go! |
e4f518d
to
076255c
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.
Thanks!
One small comment about the dockerfile syntax pinning but outside of that it looks very good thanks! Although could you apply the same set of changes to pipeline.Dockerfile
which is used intensively in the CI?
076255c
to
715d8a6
Compare
I will open another PR when these are merged: |
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.
Arf sorry for that the pipeline seems to be currently too busy (https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/pipelines)... Could you amend/push force in like ~2hours (or more).
Asides from that thank you very much for this contribution!
/lgtm
/ok-to-test |
Oh i see but i think you can just close and reopen my PR and this will retrigger github pipelines! |
I can't do that unfortunately :( |
Signed-off-by: Maxime Leroy <19607336+maxime1907@users.noreply.github.com>
715d8a6
to
c922215
Compare
/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.
@maxime1907 Thank you 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, maxime1907, MrFreezeex The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Maxime Leroy <19607336+maxime1907@users.noreply.github.com>
What type of PR is this?
What this PR does / why we need it:
Apply best practices recommended by hadolint:
Does this PR introduce a user-facing change?: