Files
scylladb/tools/toolchain/Dockerfile
Avi Kivity c5a1f44731 tools: toolchain: switch from ccache to sccache
sccache combines the functions of ccache and distcc, and
promises to support C++20 modules in the future. Switch
to sccache in anticipation of modules support.

The documentation is adjusted since cache will be
persistent for sccache without further work.

Closes scylladb/scylladb#28524
2026-02-18 12:23:12 +02:00

20 lines
669 B
Docker

FROM registry.fedoraproject.org/fedora:43
ARG CLANG_BUILD="SKIP"
ARG CLANG_ARCHIVES
WORKDIR /mnt
RUN echo install_weak_deps=False >> /etc/dnf/dnf.conf
RUN dnf -y update \
&& dnf -y install 'dnf-command(copr)' \
&& dnf -y install sccache \
&& dnf -y install devscripts debhelper fakeroot file rpm-build \
&& ./install-dependencies.sh && dnf clean all \
&& rm -rf /root/.cache /root/.cargo \
&& echo 'ALL ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers \
&& cp ./tools/toolchain/system-auth /etc/pam.d \
&& echo 'Defaults !requiretty' >> /etc/sudoers
RUN mkdir -p /root/.m2/repository
RUN ./tools/toolchain/optimized_clang.sh
CMD /bin/bash