Skip to content

Commit 7bdabf7

Browse files
committed
Fix base docker image
1 parent e08521b commit 7bdabf7

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
FROM silkeh/clang:10
2-
3-
LABEL maintainer="RafikFarhad<[email protected]>"
4-
1+
FROM 192.168.201.13:5000/clang:12
52
COPY entrypoint.sh /entrypoint.sh
6-
73
RUN chmod +x /entrypoint.sh
8-
9-
ENTRYPOINT ["/entrypoint.sh"]
4+
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function resolve_inputs() {
3838

3939
function check_file() {
4040
local file="$1"
41-
message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")"
41+
message="$(clang-format-12 -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")"
4242
local status="$?"
4343
if [ $status -ne 0 ]; then
4444
echo "$message" >&2
@@ -71,7 +71,7 @@ function main() {
7171
if [ $i -ne 0 ]; then
7272
echo -n " && "
7373
fi
74-
clang-format $STYLE -i ${PROBLEMETIC_FILES[$i]}
74+
clang-format-12 $STYLE -i ${PROBLEMETIC_FILES[$i]}
7575
done
7676
fi
7777
}

0 commit comments

Comments
 (0)