Adds dockerfile variable to configure air-gapped hosting server as replacement for github.com

This commit is contained in:
torsten committed 2026-11-09 12:12:43 +00:00
1 parent 7373cb8d73
commit 7905b3c196
4 files changed
+65 -53

No files matched your search

+16 -13
View File
@@ -56,25 +56,28 @@ RUN curl -fsSL http://${RME_ADMINSRV}/rme/deb_and_rpm_signage_key.asc --output /
ARG QT_VERSION=6.10.2
ARG KDREPORTS_VERSION=2.3.0
# Air-gapped Harbor registry URL
ARG HARBOR_URL=https://internal-repo.sl.defence-elec.de
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake git \
build-essential cmake curl \
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
# Download and build KDReports from air-gapped Harbor registry
RUN curl -L -o /tmp/KDReports-2.3.0.tar.gz ${HARBOR_URL}/KDReports-2.3.0.tar.gz && \
tar -xzf /tmp/KDReports-2.3.0.tar.gz -C /tmp && \
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-2.3.0.tar.gz /tmp/KDReports
# Create header alias for legacy includes
RUN ln -sfn /usr/local/include/KDReports-qt6 /usr/local/include/KDReports