-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Build debuggable containers #4606
Build debuggable containers #4606
Conversation
…mize images for dev vs debug.
Codecov Report
@@ Coverage Diff @@
## master #4606 +/- ##
==========================================
+ Coverage 73.20% 73.38% +0.17%
==========================================
Files 339 341 +2
Lines 13320 13505 +185
==========================================
+ Hits 9751 9910 +159
- Misses 2958 2976 +18
- Partials 611 619 +8
Continue to review full report at Codecov.
|
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!
Why is this change required? Setting "GO_GC_FLAGS" and "GO_LDFLAGS" in dockerfile is a common practice. Changing this to "SKAFFOLD_GO_GCFLAGS" might break existing user's dockerfile |
I'm not very opinionated about this. @briandealwis had suggested prefixing |
@briandealwis @tejal29 @nkubala PTAL. |
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.
One question and a few optional changes
Fixes #4370
Add default build args for docker and buildpacks when building for Debug vs non Debug. Also handle skaffold image cache updates.
Redo #4467. No need to extract out
ImageOptions
since #4598 introduces aConfig
interface anyways.User facing changes (remove if N/A)
Dockerfile can expose
ARG SKAFFOLD_GO_GCFLAGS
and expect Skaffold to supply meaningful values.Buildpacks auto set
GOOGLE_GCFLAGS
build options.Additionally the run mode
dev
,debug
, etc. is exposed asSKAFFOLD_RUN_MODE