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(CLI): Support debug command #124

Open
gaocegege opened this issue May 9, 2022 · 5 comments
Open

feat(CLI): Support debug command #124

gaocegege opened this issue May 9, 2022 · 5 comments
Labels

Comments

@gaocegege
Copy link
Member

gaocegege commented May 9, 2022

Description

We need to support debug commands to help users debug the build artifact easily.

Use case

Users may encounter problems during the build process. And the error is hard to resolve since the build process is complex.

As the envd user, I want to get the failed build artifact running, thus I can debug it in the running environment to know why it fails.

Ref https://github.com/ktock/buildg

@aseaday
Copy link
Member

aseaday commented Jul 13, 2022

https://github.com/ktock/buildg seems a good option.

@aseaday
Copy link
Member

aseaday commented Jul 13, 2022

IMO, envd manifest shoud be a statement of final environment rather than the build process. So I think this issue's priority is not as important as others. Envd users only write out what they need.

@gaocegege
Copy link
Member Author

gaocegege commented Jul 13, 2022

@aseaday Could you please explain more about it?

@gaocegege
Copy link
Member Author

This command is used to debug why the image fails to build. For example:

def build():
     install.conda_packages(name = [
        "un-existed",
    ], channel= ["pytorch"])
    base(os="ubuntu20.04", language="python3.8")
$ envd build
err: ...
(envd-debug) > exec bash
$ # Debug here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants