Skip to content

Using the k.d.d

?/θ edited this page Aug 1, 2025 · 5 revisions

You will need three things to build a Koha package:

  • a valid Koha repository (in this example, it will be at /home/koha/kohaclone)
  • a valid, empty, output directory (in this example, it will be at /home/koha/kohadebs)
  • a valid installation of Docker (please see the Installing Docker correctly article for instructions on how to do this)

Make sure you have checked out the branch you would like. To do this (using 22.11 as an example):

cd /home/koha/kohaclone
git fetch origin ; git checkout -b 22.11.custom --track origin/22.11.x

With the correct branch, choose a valid Docker image, and run with:

docker run \
    --privileged \
    --volume=/home/koha/kohaclone:/kohaclone \
    --volume=/home/koha/kohadebs:/kohadebs \
    registry.gitlab.com/ptfs-europe/koha-dpkg-docker:master

Remember to keep the Docker mountpoints (the directory after the colon) the same! When the process is complete, you should have a valid set of packages in the kohadebs directory.

Congratulations! You now have some freshly-baked Koha debs.

Clone this wiki locally