Skip to content

Commit

Permalink
Fix base docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ardeness committed May 26, 2021
1 parent e08521b commit 7bdabf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
FROM silkeh/clang:10

LABEL maintainer="RafikFarhad<[email protected]>"

FROM 192.168.201.13:5000/clang:12
COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 7bdabf7

Please sign in to comment.