Skip to content

feat: debug mode #1254

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: debug mode #1254

wants to merge 1 commit into from

Conversation

iloveitaly
Copy link
Contributor

@iloveitaly iloveitaly commented Jan 7, 2025

This would enable an interative shell to be opened up if a build fails. This is still experimental
and I'm running into some issues using this with orbstack, so this PR is still very much a WIP.

orbstack/orbstack#1700

Without this option, the only way to debug a failing build is to --out the build, insert multi-stage
build commands in the dockerfile and then use --target to get in-progress container ID to play around
with, which is super lame. We need a better way.

This would enable an interative shell to be opened up if a build fails. This is still experimental
and I'm running into some issues using this with orbstack, so this PR is still very much a WIP.

orbstack/orbstack#1700

Without this option, the only way to debug a failing build is to `--out` the build, insert multi-stage
build commands in the dockerfile and then use `--target` to get in-progress container ID to play around
with, which is super lame. We need a better way.
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Jan 18, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder about this pull request! Please let me know if there is anything else that needs to be addressed.

@iloveitaly
Copy link
Contributor Author

is there a way to mark these issues as OK to leave around for the issue bot? I'm just copying pasting those messages above to keep the issue open.

@github-actions github-actions bot removed the stale The pull request is stale label Jan 19, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Jan 30, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder on this pull request! Let me know if there's anything else that needs to be addressed here.

@github-actions github-actions bot removed the stale The pull request is stale label Jan 31, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Feb 10, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder regarding this pull request! Let me know if there are any further updates needed.

@github-actions github-actions bot removed the stale The pull request is stale label Feb 11, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Feb 21, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder about this pull request! Let me know if there are any updates or additional tasks needed.

@github-actions github-actions bot removed the stale The pull request is stale label Feb 23, 2025
Copy link
Contributor

github-actions bot commented Mar 6, 2025

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Mar 6, 2025
@iloveitaly
Copy link
Contributor Author

Just a friendly reminder on this pull request! Let me know if you need any further assistance.

@github-actions github-actions bot removed the stale The pull request is stale label Mar 7, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Mar 17, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder about this pull request! Let me know if there are any updates needed.

@github-actions github-actions bot removed the stale The pull request is stale label Mar 18, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Mar 28, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder about this pull request! Let me know if there are any updates or additional changes needed.

@github-actions github-actions bot removed the stale The pull request is stale label Mar 29, 2025
Copy link
Contributor

github-actions bot commented Apr 8, 2025

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Apr 8, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder regarding this pull request. Please provide an update or let me know if there are any outstanding tasks.

@github-actions github-actions bot removed the stale The pull request is stale label Apr 9, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label Apr 20, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder on this pull request! Let me know if there are any updates or additional changes needed.

@github-actions github-actions bot removed the stale The pull request is stale label Apr 21, 2025
Comment on lines +157 to +160
.arg("buildx")
.arg("debug")
.arg("--invoke")
.arg("bash")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should only be changed if the debug flag is set?

@@ -36,11 +36,14 @@ fn get_output_dir(app_src: &str, options: &DockerBuilderOptions) -> Result<Outpu
}
}

// TODO need to quote the output here otherwise the build command will fail with special char ENV vars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean here?

Copy link
Contributor

github-actions bot commented May 5, 2025

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label May 5, 2025
@iloveitaly
Copy link
Contributor Author

Just a friendly reminder on this pull request! Let me know if there are any updates or additional changes needed.

@github-actions github-actions bot removed the stale The pull request is stale label May 6, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label May 16, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder about this pull request! Let me know if there are any updates needed.

@github-actions github-actions bot removed the stale The pull request is stale label May 17, 2025
Copy link
Contributor

This pull request is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale The pull request is stale label May 27, 2025
@iloveitaly
Copy link
Contributor Author

Friendly reminder regarding this pull request. Let me know if there are any updates or additional tasks needed.

@github-actions github-actions bot removed the stale The pull request is stale label May 28, 2025
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.

2 participants