Skip to content
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

feat: interactive debug builder #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vsoch
Copy link
Member

@vsoch vsoch commented Oct 24, 2024

Problem: when large builds (spack) fail, we have to start over. Solution: prototype a debug solution that, when a flag -i (for interactive) is added for a custom build entrypoint, we allow a dispatchRun builder command to fail, and still commit the layer. This means we have the changes regardless of the exit code. Note that this is implemented for the Dockerfile builder but not yet buildkit, which has another grpc call that I have not looked at yet. It should be considered a proof of concept.

Putting a PR against my own repository so I can see it! I can't believe this worked, and it was so easy to read the code after months of reading Kubernetes... 😆

image

- A picture of a cute animal (not mandatory but encouraged)

Does this count?

image

Problem: when large builds (spack) fail, we have to start over.
Solution: prototype a debug solution that, when a flag -i
(for interactive) is added for a custom build entrypoint, we
allow a dispatchRun builder command to fail, and still commit
the layer. This means we have the changes regardless of the exit
code. Note that this is implemented for the Dockerfile builder
but not yet buildkit, which has another grpc call that I have not
looked at yet. It should be considered a proof of concept.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant