fuel-ccp-debian-base/tools/run-check-docker-syntax.sh
Proskurin Kirill e0ce4bc28a Initial base layers docker files
Change-Id: I7bfca1cd80ecdff8f80091b5d640adbf510b9436
2016-05-17 15:39:49 +02:00

10 lines
302 B
Bash
Executable File

#!/bin/bash
### Temp docker syntax checker script. Doesnt really check something...
set -e
for file in $(find . -name 'Dockerfile.j2')
do
fgrep -q FROM $file || echo 'Miss/ wrong FROM section in file' $file
fgrep -q MAINTAINER $file || echo 'Miss/ wrong MAINTEINER section in file' $file
done