No description
Find a file
Jake Deery 83823c14e9
chore: removed env from Dockerfile
Removed env from Dockerfile, so the environment can be customised at runtime
2025-06-12 17:02:41 +01:00
jenkins_config chore: multi-arch script added to repo 2025-06-05 17:03:19 +01:00
misc chore: s/ptfs-europe/openfifth 2025-03-29 16:23:30 +00:00
.gitignore Fixed .gitignore 2023-09-20 23:34:15 +01:00
build.sh chore: removed env from Dockerfile 2025-06-12 17:02:41 +01:00
create_multiarch.sh chore: multi-arch script added to repo 2025-06-05 17:03:19 +01:00
defaults.env chore: updated to now use trixie 2025-06-04 23:00:12 +00:00
docker-compose.yml chore: s/ptfs-europe/openfifth 2025-03-29 16:23:30 +00:00
LICENSE chore: s/ptfs-europe/openfifth 2025-03-29 16:23:30 +00:00
README.md chore: multi-arch script added to repo 2025-06-05 17:03:19 +01:00

Automated Debian package builder for Koha, based on the work by tcohen

This is designed to run within Jenkins or GitLab CI/CD, as a quick, easy, and reliable way of turning a Koha repository clone into a Debian package of Koha.

Usage

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 main as an example):

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

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 \
    ghcr.io/openfifth/koha-dpkg-docker:main

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!

Source code & wiki pages

The source code found under this repository is covered under the GPL v3 licence. Please see the LICENSE file for details.

The wiki is also found on GitLab, under the GitLab wikis section of the repo