Debugging Dagster inside Docker container #25252
Closed
C-Loftus
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
I did not see this anywhere so I wanted to write this up. My team is using dagster inside of docker swarm. We could not use dagster dev locally since we needed to be inside the container to get all our proper dependencies.
If you have any insight or feedback, feel free to let me know.
All code is found at: https://github.com/internetofwater/scheduler If you like this, please star our project
Setup
In order to get this working you need to
debugpy
so you can expose a python module for remote debuggingdagster dev
from inside the container wrapping it withdebugpy
Example Dockerfile and entrypoint
Dockerfile
Entrypoint
-f
specifierslaunch.json
for vscode that connects to the localdebugpy
port. (I'm sure an alternative exists in pycharm, I just don't use it so I am not sure there)Beta Was this translation helpful? Give feedback.
All reactions