andriisoldatenko / debugging-containerized-python-applications

Debugging containerized Python applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debugging-containerized-python-applications

Debugging containerized Python applications

Sample Python app

make build-sample-app

make run-sample-app

debugpy

docker build -f Dockerfile-debugpy -t asoldatenko/py-sample-app-debug .
docker run 

PuDB

docker build -t pudb-debug -f Dockerfile-pudb-debug .
docker run pudb-debug -p 6899:6899

podman run -p 6899:6899 pudb-debug

open separate terminal:

telnet 127.0.0.1 6899
mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
      On effectiveness<br/>and features
      On Automatic creation
        Uses
            Creative techniques
            Strategic planning
            Argument mapping
    Tools
      Pen and paper
      Mermaid

Add git-sha

docker build -f Dockerfile-debugpy-sha --build-arg GIT_HASH=${GIT_HASH::7} -t asoldatenko/py-sample-app-debug .
docker run --rm asoldatenko/py-sample-app-debug env | grep GIT_HASH

GIT_HASH=80907a7

About

Debugging containerized Python applications

License:MIT License


Languages

Language:Shell 35.2%Language:Python 24.3%Language:Makefile 22.1%Language:Dockerfile 18.4%