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

+17 -14
View File
@@ -56,26 +56,29 @@ RUN curl -fsSL http://${RME_ADMINSRV}/rme/deb_and_rpm_signage_key.pub --output /
ARG QT_VERSION=6.10.2
ARG GRANTLEE_VERSION=5.3.1
# 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 \
qt6-base-dev \
&& rm -rf /var/lib/apt/lists/*
# Clone and build Grantlee
RUN git clone --depth 1 --branch ${GRANTLEE_VERSION} \
https://github.com/steveire/grantlee.git /tmp/grantlee \
&& cd /tmp/grantlee \
&& mkdir build && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_PREFIX_PATH=/opt/Qt/${QT_VERSION}/gcc_64 \
-DGRANTLEE_BUILD_WITH_QT6=ON \
.. \
&& cmake --build . -j$(nproc) \
&& cmake --install . \
&& rm -rf /tmp/grantlee
# Download and build Grantlee from air-gapped Harbor registry
RUN curl -L -o /tmp/grantlee-${GRANTLEE_VERSION}.tar.gz ${HARBOR_URL}/grantlee-${GRANTLEE_VERSION}.tar.gz && \
tar -xzf /tmp/grantlee-${GRANTLEE_VERSION}.tar.gz -C /tmp && \
cd /tmp/grantlee-${GRANTLEE_VERSION} && \
mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_PREFIX_PATH=/opt/Qt/${QT_VERSION}/gcc_64 \
-DGRANTLEE_BUILD_WITH_QT6=ON \
.. && \
cmake --build . -j$(nproc) && \
cmake --install . && \
rm -rf /tmp/grantlee-${GRANTLEE_VERSION}.tar.gz /tmp/grantlee-${GRANTLEE_VERSION}
# Update library cache
RUN ldconfig