-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.buildbot_dockerfile_debian
More file actions
22 lines (22 loc) · 1 KB
/
.buildbot_dockerfile_debian
File metadata and controls
22 lines (22 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:latest
WORKDIR /ci
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
apt-get update && \
apt-get -y install clang-17 make curl procps file git cmake python3 \
libtinfo-dev libzip-dev mold ninja-build gdb pipx rsync && \
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-17 999 && \
update-alternatives --set cc /usr/bin/clang-17 && \
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-17 999 && \
update-alternatives --set c++ /usr/bin/clang++-17 && \
update-alternatives --install /usr/bin/ld ld /usr/bin/mold 999 && \
update-alternatives --set ld /usr/bin/mold && \
ln -sf /usr/bin/clang-17 /usr/bin/clang && \
ln -sf /usr/bin/clang++-17 /usr/bin/clang++
ARG CI_UID
RUN useradd -m -u ${CI_UID} ci && chown ${CI_UID}:${CI_UID} .
ARG CI_RUNNER
ENV CI_RUNNER=${CI_RUNNER}
COPY --chown=${CI_UID}:${CI_UID} . .
CMD ["sh", "-x", ".buildbot.sh"]