Files
qt-migration-copilot-demo/ci/Dockerfile.ci
T
torstenandCopilot 0d37751d8c
qt-migration-copilot-demo/pipeline/pr-main There was a failure building this commit
Fix Jenkins workspace permission issue
- Add jenkins user to Dockerfile.ci and run as non-root
- Remove '-u root:root' args from Jenkinsfile Docker agent
- Build files will now be owned by jenkins user, allowing proper cleanup

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Entire-Checkpoint: f545f3d8aa33
2026-10-22 18:41:10 +02:00

40 lines
867 B
Docker

FROM ubuntu:26.04
ENV DEBIAN_FRONTEND=noninteractive
# Create jenkins user with same UID as host jenkins (typically 1000)
RUN groupadd -g 1000 jenkins && \
useradd -u 1000 -g 1000 -m -s /bin/bash jenkins
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
clang-format \
cmake \
ninja-build \
git \
g++ \
make \
ca-certificates \
openssh-client \
pkg-config \
qtbase5-dev \
qt6-base-dev \
qt6-base-dev-tools \
qt6-tools-dev \
qt6-tools-dev-tools \
lcov \
genhtml && \
rm -rf /var/lib/apt/lists/*
# Set Qt platform for headless testing
ENV QT_QPA_PLATFORM=offscreen
# Configure git for containerized environments
RUN git config --global --add safe.directory "*"
WORKDIR /workspace
# Switch to non-root user
USER jenkins