Skip to content

Instantly share code, notes, and snippets.

@moraisaugusto
Last active November 5, 2019 16:14
Show Gist options
  • Save moraisaugusto/ef5e548ba7334629c29e95ed650d2a2b to your computer and use it in GitHub Desktop.
Save moraisaugusto/ef5e548ba7334629c29e95ed650d2a2b to your computer and use it in GitHub Desktop.
debug python from docker container
# 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