kolla/tools/validate-all-dockerfiles.sh
Dincer Celik e21a142111 Make tools bash compatible
Change-Id: Iccccc91b0a44f92bcbb2442638a93e7624da112b
2020-01-20 18:14:38 +03:00

21 lines
447 B
Bash
Executable File

#!/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