Dockerfile (913B)
1 # Minimal image with clang-format-13 2 FROM debian:bookworm-20240904-slim 3 LABEL maintainer="John Schanck <jschanck@mozilla.com>" 4 5 RUN apt-get update \ 6 && apt-get install -y --no-install-recommends \ 7 clang-format-13 \ 8 locales \ 9 mercurial \ 10 && rm -rf /var/lib/apt/lists/* \ 11 && apt-get autoremove -y && apt-get clean -y 12 13 RUN update-alternatives --install /usr/bin/clang-format \ 14 clang-format $(which clang-format-13) 13 15 16 ENV SHELL /bin/bash 17 ENV USER worker 18 ENV LOGNAME $USER 19 ENV HOME /home/$USER 20 ENV HOSTNAME taskcluster-worker 21 ENV LANG en_US.UTF-8 22 ENV LC_ALL $LANG 23 ENV HOST localhost 24 ENV DOMSUF localdomain 25 26 RUN locale-gen $LANG \ 27 && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales 28 29 RUN useradd -d $HOME -s $SHELL -m $USER 30 WORKDIR $HOME 31 USER $USER 32 33 # Entrypoint - which only works if /home/worker/nss is mounted. 34 ENTRYPOINT ["/home/worker/nss/automation/clang-format/run_clang_format.sh"]