From f44c08a1621f1c725406da3b1e084ad34b520a3b Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 19 Jul 2022 16:09:55 +0200 Subject: [PATCH] more changes --- README.md | 7 +++++++ ckan/Dockerfile.dev | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 \