From afe1fe82684fe6b395e904f83324c3951348038e Mon Sep 17 00:00:00 2001 From: Adrien Leravat Date: Fri, 14 Jun 2019 13:25:05 -0700 Subject: [PATCH] Add original Docker image, using run-clang-format.py --- .gitmodules | 3 +++ Dockerfile | 12 ++++++++++++ run-clang-format | 1 + 3 files changed, 16 insertions(+) create mode 100644 .gitmodules create mode 100644 Dockerfile create mode 160000 run-clang-format diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..517f2a7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "run-clang-format"] + path = run-clang-format + url = https://github.com/Sarcasm/run-clang-format diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..768f4ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:19.04 + +RUN apt update && apt-get install -y --no-install-recommends \ + clang-format python3 \ + && rm -rf /var/lib/apt/lists/* + +ADD run-clang-format/run-clang-format.py /usr/bin + +RUN mkdir /src +WORKDIR /src +ENTRYPOINT ["run-clang-format.py", "-r", "."] + diff --git a/run-clang-format b/run-clang-format new file mode 160000 index 0000000..50fc7ad --- /dev/null +++ b/run-clang-format @@ -0,0 +1 @@ +Subproject commit 50fc7ad73e596225955fe90226ee7870b28febf2