-
Notifications
You must be signed in to change notification settings - Fork 99
Remove needless arg from container/Dockerfile #358
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]>
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.
Pull Request Overview
This PR removes a superfluous default ARG from the Dockerfile to simplify automated Golang version bumps by depending on an externally provided value. The changes include removing the hardcoded GOLANG_VERSION during the build stage, explicitly requiring the build argument, and standardizing ENV variable syntax.
Comments suppressed due to low confidence (1)
deployments/container/Dockerfile:24
- The placeholder value 'x.x.x' for GOLANG_VERSION may lead to unintended behavior if not overridden. Consider updating the placeholder or adding a clarifying comment to ensure it's always injected via the build system.
ARG GOLANG_VERSION=x.x.x
| ENV GOPATH /go | ||
| ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH | ||
| ENV GOPATH=/go | ||
| ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH |
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.
(noop change, that was just my local Dockerfile linter complaining)
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.
Does this also require changes to the README or do we not document building using the Dockerfile directly?
We don't. We only document using the scripts. |
This change removes a (by now) superfluous arg. The removal simplifies dependabot-automated Golang bumps.
Note that GOLANG_VERSION is injected (based on the current source of truth) when invoking for example
make -f deployments/container/Makefile build.Connecting dots: #324 (comment)