-
Notifications
You must be signed in to change notification settings - Fork 9
Add debugpy to Dockerfile for service containers #239
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
Conversation
|
Do we need documentation for configuring a Helm chart/Kubernetes resources, such that the documentation for how to remote debug can be added to it? Or can we defer to the developer guide/ helm create? I don't know how beginner friendly I really need to be to enable people with less experience to get involved here. |
template/Dockerfile.jinja
Outdated
| ENTRYPOINT ["python" "-m"] | ||
| # Allows for modifying the ENTRYPOINT for debugging, e.g. | ||
| #ENTRYPOINT ["python", "-m", "debugpy", "-m"] | ||
| CMD ["{{ repo_name }}", "--version"]{% endif %} |
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.
While we're at this, should we remove --version as the default use of the container is far more likely to be "run the cli", not "check the version of the cli"?
| CMD ["{{ repo_name }}", "--version"]{% endif %} | |
| CMD ["{{ repo_name }}"]{% endif %} |
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 vote to leave the Dockerfile as something that exits successfully and make it obvious how to modify it.
I think that depends how DLS specific the guide is. If it can be made generic then it probably belongs in the copier template, but if not then the developer portal is better. |
|
I am going to test out these new docs by following them along. |
|
Does not as hoped support hot swapping of code through the debugpy protocols |
Adds debugpy to the container that is built for deploying services with.
This, along with documenting how to make use of it when deploying with e.g. Kubernetes, will allow for remote debugging of the code, and provide a standard approach to solve #234