Skip to content

Commit

Permalink
docker: also add clang-format to the docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
muxator committed Sep 29, 2023
1 parent 7a2ac1c commit be11084
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
# is explicitly mentioned in the Dockerfile) or will not grab it (if the
# file is indirectly referenced through a wildcard).

!/.clang-format
!/cmake
!/CMakeLists.txt
!/engine
!/infra
!/Makefile
!/README.md
!/scripts
!/specs
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.fedora38
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FROM fedora:38
RUN dnf install -y \
autoconf \
automake \
clang-tools-extra \
cmake \
g++ \
gcc \
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.ubuntu22.04
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt update && apt install --no-install-recommends -y \
automake \
bsdextrautils \
ca-certificates \
clang-format-15 \
cmake \
g++ \
gcc \
Expand Down Expand Up @@ -38,6 +39,10 @@ RUN apt install --no-install-recommends -y \
libzmq3-dev \
swi-prolog

# link clang-format-15 as clang-format
RUN update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 10 && \
update-alternatives --set clang-format /usr/bin/clang-format-15

RUN mkdir /itcoin-fbft

WORKDIR /itcoin-fbft
Expand Down

0 comments on commit be11084

Please sign in to comment.