[DO-1495] add cmake-format (!2)
Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Some checks failed
Build and publish docker image / Builds the image and publishes to docker hub (push) Has been cancelled
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Docker/clang-format/pulls/2
This commit is contained in:
@@ -5,7 +5,7 @@ ARG UBUNTU_VERSION=22.04
|
||||
FROM ${DOCKER_REGISTRY}/ubuntu:${UBUNTU_VERSION}
|
||||
|
||||
LABEL maintainer="devops <devops@avroid.tech>" \
|
||||
description="Image with LLVM clang-format, for check sources" \
|
||||
description="Image with LLVM clang-format and cmake-format for check sources" \
|
||||
tools.nodejs.version="20.9.0"
|
||||
|
||||
ARG CLANG_TOOLS_VERSION=14
|
||||
@@ -21,10 +21,10 @@ ARG USER_HOME=/home/${USER}
|
||||
ARG NEXUS_DOMAIN_NAME='nexus.avroid.tech'
|
||||
ARG NEXUS_URL="https://${NEXUS_DOMAIN_NAME}"
|
||||
|
||||
ENV TZ Europe/Moscow
|
||||
ENV TZ=Europe/Moscow
|
||||
|
||||
# Подавляем вывод в консоль интерактивных диалогов у служебных команд
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN sed -ie "s/deb\ http\:\/\/archive.ubuntu.com\/ubuntu/deb\ [trusted=yes] https\:\/\/${NEXUS_DOMAIN_NAME}\/repository\/all-apt-proxy-archive-ubuntu-com/g" /etc/apt/sources.list \
|
||||
&& sed -ie "s/deb\ http\:\/\/security.ubuntu.com\/ubuntu/deb\ [trusted=yes] https\:\/\/${NEXUS_DOMAIN_NAME}\/repository\/all-apt-proxy-security-ubuntu-com/g" /etc/apt/sources.list \
|
||||
@@ -64,6 +64,7 @@ RUN wget -O - "${NEXUS_URL}/repository/all-raw-proxy-apt-llvm-org/llvm-snapshot.
|
||||
&& apt-get install -y \
|
||||
clang-format-${CLANG_TOOLS_VERSION} \
|
||||
clang-tidy-${CLANG_TOOLS_VERSION} \
|
||||
cmake-format \
|
||||
parallel \
|
||||
&& ln -s /usr/bin/clang-format-${CLANG_TOOLS_VERSION} /usr/bin/clang-format \
|
||||
&& ln -s /usr/bin/clang-tidy-${CLANG_TOOLS_VERSION} /usr/bin/clang-tidy \
|
||||
|
||||
Reference in New Issue
Block a user