-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for delve debugging in the shell #5553
base: master
Are you sure you want to change the base?
Conversation
7829129
to
605dc69
Compare
@@ -356,7 +356,7 @@ ENV BUILDKIT_SETUP_CGROUPV2_ROOT=1 | |||
ENTRYPOINT ["buildkitd"] | |||
|
|||
FROM buildkit-linux AS buildkit-linux-debug | |||
COPY --link --from=dlv /usr/bin/dlv /usr/bin/dlv | |||
COPY --link --from=dlv /out/dlv /usr/bin/dlv |
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.
@crazy-max Looks like this broke in https://github.com/moby/buildkit/pull/5497/files . We should have a CI check to make sure it doesn't go unnoticed.
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.
PTAL lint error in CI
hack/run
Outdated
|
||
set -e | ||
|
||
if ! command -v $1 &> /dev/null; then |
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.
This file should be named something more specific than "run" I think. Is there value of this outside of invoking dlv exec
?
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 was kinda of following the way it is in Moby for consistency but it could be named debug
Signed-off-by: Laurent Goderre <[email protected]>
605dc69
to
d91a01d
Compare
This allows to do run the daemon or CLI with the debugger in the shell container.
Ex: