diff --git a/Dockerfile b/Dockerfile index 5516ce4..e6ad1b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,4 @@ -FROM silkeh/clang:10 - -LABEL maintainer="RafikFarhad" - +FROM 192.168.201.13:5000/clang:12 COPY entrypoint.sh /entrypoint.sh - RUN chmod +x /entrypoint.sh - -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index b33c477..b769a20 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,7 +38,7 @@ function resolve_inputs() { function check_file() { local file="$1" - message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")" + message="$(clang-format-12 -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")" local status="$?" if [ $status -ne 0 ]; then echo "$message" >&2 @@ -71,7 +71,7 @@ function main() { if [ $i -ne 0 ]; then echo -n " && " fi - clang-format $STYLE -i ${PROBLEMETIC_FILES[$i]} + clang-format-12 $STYLE -i ${PROBLEMETIC_FILES[$i]} done fi }