-
Notifications
You must be signed in to change notification settings - Fork 25
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
Set GOOS,GOARCH env and ldflags option in .ci/build file #147
Set GOOS,GOARCH env and ldflags option in .ci/build file #147
Conversation
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.
If you wish to reduce the size further you can strip off DWARF generation which removes the possibility for you to connect a gbd (debugger) (option to use -w
)
As discussed building for different architectures (ARM64 and AMD64) will be taken up later.
cc @ialidzhikov |
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
Feel free to close gardener/gardener#6428 and open new PR with the new image. |
* set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced
* set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced
* updated dockerfile name and base image * Set GOOS,GOARCH env and ldflags option in .ci/build file (#147) * set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced * rollback some cherry-pick changes Co-authored-by: Himanshu Sharma <79965161+himanshu-kun@users.noreply.github.com>
* set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced
* set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced
* Set GOOS,GOARCH env and ldflags option in .ci/build file (#147) * set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced * updated dockerfile name and base image * rollback some cherry-pick changes Co-authored-by: Himanshu Sharma <79965161+himanshu-kun@users.noreply.github.com>
* Set GOOS,GOARCH env and ldflags option in .ci/build file (#147) * set GOOS,GOARCH env and ldflags option * -w flag in --ldflags introduced * updated dockerfile name and base image * rollback some cherry-pick changes Co-authored-by: Himanshu Sharma <79965161+himanshu-kun@users.noreply.github.com>
What this PR does / why we need it:
Bring .ci/build in sync with Makefile way of creating binary. This is required after we started using
gcr.io/distroless/static:latest-amd64
image inDockerfile.amd64
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: