aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_clang_format
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-02-05 14:44:55 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-02-05 15:12:29 +0100
commita300764d14f008811096a5c1fa142415ed96d5cc (patch)
tree77bf2a6dcacd550c7c33541f939659ecbf599146 /tools/dockerfile/grpc_clang_format
parent73a50abd1d675acba4bdbde3af8ca0077654de79 (diff)
clang format and tidy shouldnt change file ownership
Diffstat (limited to 'tools/dockerfile/grpc_clang_format')
-rw-r--r--tools/dockerfile/grpc_clang_format/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dockerfile/grpc_clang_format/Dockerfile b/tools/dockerfile/grpc_clang_format/Dockerfile
index 8801315bc9..ecdc52ee31 100644
--- a/tools/dockerfile/grpc_clang_format/Dockerfile
+++ b/tools/dockerfile/grpc_clang_format/Dockerfile
@@ -23,4 +23,9 @@ RUN ln -s /clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin/clang-tidy /usr/local/b
ENV CLANG_TIDY=clang-tidy
ADD clang_format_all_the_things.sh /
+
+# When running locally, we'll be impersonating the current user, so we need
+# to make the script runnable by everyone.
+RUN chmod a+rx /clang_format_all_the_things.sh
+
CMD ["echo 'Run with tools/distrib/clang_format_code.sh'"]