From f5ae70f1e853c0f0800a828f45bf3e260069a097 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Wed, 10 Jan 2024 11:37:14 +0900 Subject: [PATCH] [infra] Install clang-format-16 on docker This commit updates dockerfile to install clang-format-16. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh --- infra/docker/focal/Dockerfile | 6 ++++++ infra/docker/focal/Dockerfile.aarch64 | 6 ++++++ infra/docker/jammy/Dockerfile | 6 ++++++ infra/docker/jammy/Dockerfile.aarch64 | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/infra/docker/focal/Dockerfile b/infra/docker/focal/Dockerfile index d60eb7cedee..df91e275a4a 100644 --- a/infra/docker/focal/Dockerfile +++ b/infra/docker/focal/Dockerfile @@ -38,6 +38,12 @@ RUN apt-get update && \ RUN python3 -m pip install --upgrade pip RUN python3 -m pip install yapf==0.22.0 numpy flatbuffers +# Install clang-format +RUN apt-get install -qqy gnupg2 +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" +RUN apt-get update && apt-get install -qqy clang-format-16 + # Install google test (source) RUN apt-get update && apt-get -qqy install libgtest-dev diff --git a/infra/docker/focal/Dockerfile.aarch64 b/infra/docker/focal/Dockerfile.aarch64 index b63bbb10fb3..918ed6cc530 100644 --- a/infra/docker/focal/Dockerfile.aarch64 +++ b/infra/docker/focal/Dockerfile.aarch64 @@ -38,6 +38,12 @@ RUN apt-get update && \ RUN python3 -m pip install --upgrade pip RUN python3 -m pip install yapf==0.22.0 numpy flatbuffers +# Install clang-format +RUN apt-get install -qqy gnupg2 +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" +RUN apt-get update && apt-get install -qqy clang-format-16 + # Install google test (source) RUN apt-get update && apt-get -qqy install libgtest-dev diff --git a/infra/docker/jammy/Dockerfile b/infra/docker/jammy/Dockerfile index aa500b0f452..dfabb637d78 100644 --- a/infra/docker/jammy/Dockerfile +++ b/infra/docker/jammy/Dockerfile @@ -39,6 +39,12 @@ RUN apt-get update && \ RUN python3 -m pip install --upgrade pip RUN python3 -m pip install yapf==0.22.0 numpy flatbuffers +# Install clang-format +RUN apt-get install -qqy gnupg2 +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" +RUN apt-get update && apt-get install -qqy clang-format-16 + # Install google test (source) RUN apt-get update && apt-get -qqy install libgtest-dev diff --git a/infra/docker/jammy/Dockerfile.aarch64 b/infra/docker/jammy/Dockerfile.aarch64 index a6a449dd64d..8abff4e39c5 100644 --- a/infra/docker/jammy/Dockerfile.aarch64 +++ b/infra/docker/jammy/Dockerfile.aarch64 @@ -39,6 +39,12 @@ RUN apt-get update && \ RUN python3 -m pip install --upgrade pip RUN python3 -m pip install yapf==0.22.0 numpy flatbuffers +# Install clang-format +RUN apt-get install -qqy gnupg2 +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" +RUN apt-get update && apt-get install -qqy clang-format-16 + # Install google test (source) RUN apt-get update && apt-get -qqy install libgtest-dev