aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-12-31 11:45:07 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-12-31 12:47:10 +0000
commit49aa01cc85881401b4863fee7eb2d1a0b24daa93 (patch)
tree84073e368d45bdcabe00e1fa4b71bc5cae540d39 /tools
parentd32f762a1f4d1a1e4bd4b116b42b5cd263892f71 (diff)
syz-cluster: refactor Dockerfiles
Copy everything into the build context. Add a .dockerignore file to avoid copying the definitely unnecessary files and folders. Check copyrights presence in Dockerfiles.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-copyright.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check-copyright.sh b/tools/check-copyright.sh
index ba28df438..220498eab 100755
--- a/tools/check-copyright.sh
+++ b/tools/check-copyright.sh
@@ -6,7 +6,8 @@ FILES=0
FAILED=""
for F in $(find . -name "*.go" -o -name "*.sh" -o -name "*.cpp" -o -name "*.cc" -o -name "*.h" \
-o -name "*.S" -o -name "*.py" -o -name "*.yml" -o -name "*.yaml" -o -name "*.fbs" \
- -o \( -path "./sys/*/*.txt" \) | grep -E -v "/_include/|/gen/|/testdata/"); do
+ -o -name "Dockerfile" -o \( -path "./sys/*/*.txt" \) | \
+ grep -E -v "/_include/|/gen/|/testdata/"); do
((FILES+=1))
cat $F | tr '\n' '_' | grep -E "(//|#) Copyright 20[0-9]{2}(/20[0-9]{2})? syzkaller project authors\. All rights reserved\._(//|#) Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file\." >/dev/null
if [ $? -eq 0 ]; then continue; fi