Skip to content

Issue #407: Bypass files/run.sh for debugging purpose

joubu requested to merge joubu/koha-testing-docker:issue_407 into master

Bash is a nightmare (at least my skills are bad!), and files/run.sh (the heart of ktd) is painful to modify and debug. #402 (closed) (closed) git log shows how I was struggling to add tiny changes to this script, and every time we need to wait for the image to be rebuilt, then pull it locally, etc.

We need an easy way to contribute to ktd.

This patch suggest to pull a remote file, run it, and bypass the current run.sh

To test: Edit .env Add: DEBUG_RUN=yes DEBUG_RUN_URL=https://gitlab.com/joubu/koha-testing-docker/-/raw/test/files/run.sh

Build the image: KOHA_IMAGE_OS=bullseye docker-compose -f docker-compose-build.yml -p koha up

=> Notice "hacking po files!" in the log

Checkout this "test" branch from joubu's repo, edit files/run.sh down+up the container => Notice that your changes are taken into account, instantanetly!

Merge request reports