-
Notifications
You must be signed in to change notification settings - Fork 505
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
Adding parameterization to go-runner Dockerfile #2709
Adding parameterization to go-runner Dockerfile #2709
Conversation
fdee922
to
7826e98
Compare
7826e98
to
0ba6a81
Compare
0ba6a81
to
d1afbe7
Compare
Signed-off-by: Jeremy Rickard <jrickard@microsoft.com>
d1afbe7
to
305bcd6
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, jeremyrickard, saschagrunert 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: Jeremy Rickard jrickard@microsoft.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR updates the go-runner Dockerfile to support better overriding of the builder and base images used. BUILDER_IMAGE becomes an ARG and a new Makefile variable DISTROLESS_REGISRTRY is added to allow the DISTROLESS_IMAGE build arg to receive the registry/repo as well. This is defaulted to
gcr.io/distroless
to not impact the existing configurations. The DISTROLESS_IMAGE build arg is populated with a combination of the DISTROLESS_REGISTRY and DISTROLESS_IMAGE Makefile variables:This allows you to completely override the build-arg but is backward compatible w/ the existing variants.yml and the cloudbuild.yaml
GO_VERSION and OS_CODENAME are no longer needed within the Dockerfile and are expressed entirely within the Makefile.
Which issue(s) this PR fixes:
Fixes #2702
Special notes for your reviewer:
Does this PR introduce a user-facing change?