aboutsummaryrefslogtreecommitdiff
path: root/tools/validate-all-dockerfiles.sh
blob: f840c1a8abb9c8c523a9907cebde026654014966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# Move to top level directory
REAL_PATH=$(realpath $0)
cd "$(dirname "$REAL_PATH")/.."

RES=0

find docker -name Dockerfile.j2 -print0 |
    xargs -0 tools/validate-maintainer.sh || RES=1

find docker -name Dockerfile.j2 -print0 |
    xargs -0 tools/validate-install-command.sh || RES=1

find docker -name Dockerfile.j2 -print0 |
    xargs -0 tools/validate-indentation.sh || RES=1

tools/validate-binary-build.sh || RES=1

exit $RES