diff --git a/README.md b/README.md index 14347db..66bb6f4 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ * [CKAN images](#ckan-images) * [Extending the base images](#extending-the-base-images) * [Applying patches](#applying-patches) +* [Debugging with pdb](#pdb) * [Known Issues](#known-issues) @@ -138,6 +139,12 @@ ckan ``` +## pdb + +Debug with pdb (example) - Interact with `docker attach $(docker container ls -qf name=ckan)` +command: `python -m pdb /usr/lib/ckan/venv/bin/ckan --config /etc/ckan/production.ini run --host 0.0.0.0 --passthrough-errors` +tty: true +stdin_open: true ## Known Issues diff --git a/ckan/Dockerfile.dev b/ckan/Dockerfile.dev index cdd8ae5..6f854d7 100644 --- a/ckan/Dockerfile.dev +++ b/ckan/Dockerfile.dev @@ -45,7 +45,8 @@ RUN if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then \ # to get them mounted in this image at runtime # Apply any patches needed to CKAN core or any of the built extensions (not the -# runtime mounted ones) +# runtime mounted ones) + COPY patches ${APP_DIR}/patches RUN for d in $APP_DIR/patches/*; do \