-
Notifications
You must be signed in to change notification settings - Fork 210
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
Simplify Golang images #416
Conversation
COPY index.html /app/index.html | ||
COPY assets /app/assets/ | ||
|
||
ENTRYPOINT ["/app/server"] |
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.
Why do we change the entrypoint from /app to /app/server?
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 felt wrong to be copying index.html
and assets
into the root. It also seemed weird to have /app/app
.
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.
I'm more than happy to change /app/server
to something else. /deploy/app
?
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.
I changed this to /hello-world
and kept the binary as app
.
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 - @simonz130 any additional feedback?
/gcbrun |
/gcbrun |
/gcbrun |
As Cloud Code for VS Code now leverages
skaffold debug
under the hood, this PR re-proposes #102 with some slight updates.GOTRACEBACK
env var so skaffold debug can identify images as golang (as per Add environment variable to better support skaffold debug #259)SKAFFOLD_GO_GCFLAGS
to use mode-specific compiler flags, like to disable optimization when usingskaffold debug
.SKAFFOLD_GO_GCFLAGS
to be ignored by the Go compiler. This bug does not break Skaffold 1.14 (current version distributed by Cloud SDK).