# KDReports Installation FROM harbor.sl.defence-elec.de/proxydockerhub/library/ubuntu:26.04 LABEL maintainer="Legatus Team" LABEL description="KDReports installation for Qt6" LABEL version="2.3.0" ENV DEBIAN_FRONTEND=noninteractive ARG HTTP_PROXY="" ARG HTTPS_PROXY="" ARG NO_PROXY="localhost,127.0.0.1,.sl.defence-elec.de" ENV http_proxy=${HTTP_PROXY} ENV https_proxy=${HTTPS_PROXY} ENV no_proxy=${NO_PROXY} ARG QT_VERSION=6.10.2 ARG KDREPORTS_VERSION=2.3.0 # Install build dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential cmake git \ libqt6core6 libqt6gui6 libqt6widgets6 libqt6xml6 \ qt6-base-dev \ && rm -rf /var/lib/apt/lists/* # Clone and build KDReports RUN git clone --depth 1 --branch kdreports-${KDREPORTS_VERSION} \ https://github.com/KDAB/KDReports.git /tmp/KDReports \ && cd /tmp/KDReports \ && mkdir build && cd build \ && cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr/local \ -DCMAKE_PREFIX_PATH=/opt/Qt/${QT_VERSION}/gcc_64 \ -DKDReports_QT6=ON .. \ && cmake --build . -j$(nproc) \ && cmake --install . \ && rm -rf /tmp/KDReports # Create header alias for legacy includes RUN ln -sfn /usr/local/include/KDReports-qt6 /usr/local/include/KDReports # Verify installation RUN pkg-config --modversion KDReports-qt6 | grep -q "${KDREPORTS_VERSION}" CMD ["/bin/bash"]