Kolla provides production-ready containers and deployment tools for operating OpenStack clouds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
502 B

#!/bin/bash
RES=0
for dockerfile in "$@"; do
if grep -qE '^\s+[[:upper:]]+\s+' "$dockerfile"; then
echo "ERROR: $dockerfile has indented Dockerfile instruction" >&2
grep -E '^\s+[[:upper:]]+\s+' "$dockerfile"
RES=1
fi
if grep -qE '^\s+\{\{ macros\.install_packages' "$dockerfile"; then
echo "ERROR: $dockerfile has indented Dockerfile instruction" >&2
grep -E '^\s+\{\{ macros\.install_packages' "$dockerfile"
RES=1
fi
done
exit $RES