-
Notifications
You must be signed in to change notification settings - Fork 99
Build with Go 1.23.8, update image metadata #324
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
Conversation
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
| # This Dockerfile is also used to define the golang version used in this project | ||
| # This allows dependabot to manage this version in addition to other images. | ||
| FROM golang:1.23.1 | ||
| FROM golang:1.23.8 |
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.
Since we're still on main, this is done by #312 I'm OK to do this here.
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 is done by #312 I'm OK to do this here.
Right. This PR here is slightly more conservative as it stays within 1.23.x
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.
Yes, in other projects we configure dependabot to only allow patch updates on release-* branches. This would have skipped these minor version updates.
| # limitations under the License. | ||
|
|
||
| ARG GOLANG_VERSION=1.23.1 | ||
| ARG GOLANG_VERSION=1.23.8 |
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.
It should be possible to drop this here. I know that sometimes we allow users to build the dockerfiles directly from the git repos, but setting this to:
| ARG GOLANG_VERSION=1.23.8 | |
| ARG GOLANG_VERSION=undefined |
Should give a reasonable error message when a user does not provide the expected --build-arg.
I don't think the effort in maintaining support for this out-of-band build process is worth the benefit to the community.
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! I will leave things as they are for now, and we can perform that simplification later.
| LABEL org.opencontainers.image.description "NVIDIA GPU DRA driver for Kubernetes" | ||
| LABEL summary="NVIDIA DRA Driver for GPUs" | ||
| LABEL description="NVIDIA DRA Driver for GPUs" | ||
| LABEL org.opencontainers.image.description "NVIDIA DRA Driver for GPUs" |
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.
| LABEL org.opencontainers.image.description "NVIDIA DRA Driver for GPUs" | |
| LABEL org.opencontainers.image.description="NVIDIA DRA Driver for GPUs" |
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.
On Dockerfiles is valid to have Label Key Val separated without an =
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! Let's normalize this later, and then pick the preferred way of doing this (if one of both is preferred).
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.
On Dockerfiles is valid to have Label Key Val separated without an =
Yes, I'm not saying it's invalid. I'm saying that it's locally inconsistent. Not a blocker for this PR though.
elezar
left a comment
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.
Minor nits / comments. No blockers for this PR.
Quick proposal for two unrelated and minor maintenance changes:
Note: we currently don't have a source of truth for the Go version, and need to update it in two places.
./hack/golang-version.shconsultsdeployments/devel/Dockerfile.