Dockerizing KMyMoney to facilitate contributing

Ralf Habacker ralf.habacker at freenet.de
Fri May 1 21:24:18 BST 2026



Am 01.05.26 um 18:07 schrieb Ivan Perez via KMyMoney:
> Hi,
> 
> I'd like to contribute to KMyMoney, but it would help to have a 
> dockerized dev environment that allows me to build in the expected 
> environment (even if I still edit code with my normal tools outside of 
> Docker).

The kmymoney source code includes a script named 
“tools/ci-run-docker-image.sh” that handles this use case.

An example of building kmymoney on the openSUSE Tumbleweed distribution 
using a custom image would look like this:

ci_variant=kf6 ci_image=rhabacker/suse_tumbleweed_kf6_qt68 \
ci_parallel=10 tools/ci-run-docker-image.sh --use-host-display

Other images may also be usable, but the script is specifically designed 
for openSUSE. This support is used to provision the CI jobs that begin 
with “distro*” in the .gitlab.yml file.

To run kmymoney after build was completed run the mentioned commands:

zypper --non-interactive install \
     fontconfig \
     dejavu-fonts \
     google-noto-sans-fonts \
     google-noto-sans-cjk-fonts \
     google-noto-coloremoji-fonts \
     && fc-cache -f -v

to install required fonts and then run

cmake --build ci-build-kf6-native --target install
source prefix.sh

To run kmymoney from such a Docker container, additional steps are 
required to access the host machine’s screen.

On another terminal run

  xhost +local:docker

then switch back to the docker container and run:

kmymoney

The should let kmymoney start


Regards
Ralf



More information about the KMyMoney mailing list