Last active
November 5, 2019 16:14
-
-
Save moraisaugusto/ef5e548ba7334629c29e95ed650d2a2b to your computer and use it in GitHub Desktop.
debug python from docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You should add the line | |
# `stdin_open: true` and | |
# `tty: true` on your docker-compose file. | |
# Then, just add the `__import__("ipdb").set_trace()` as | |
# usually you do in your python code. | |
version: "3" | |
services: | |
app_tests: | |
build: . | |
stdin_open: true | |
tty: true | |
command: ./run_my_tests.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment