summaryrefslogtreecommitdiff
path: root/tools/validate-all-dockerfiles.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-06-07Add script to check for forbidden instructionsMartin André1-0/+2
When building images for binary type, it is expected to not install executables from untrusted sources, and gem, sensu-install, npm or pip packages for instance should come from the distro itself. This commit adds a `validate-binary-build.sh` script that checks for forbidden commands in the rendered Dockerfile templates for the binary type builds and hooks this script with the pep8 CI job. The output is just informative for now until we've fixed the culprit Dockerfiles, then we'll make the script return an error code and with the ability to fail the pep8 CI check. This should prevent unwanted commands from entering binary type Dockerfiles. Change-Id: I66e54bd18f4256cdca6c0c50626de4f975c246b8
2018-01-17Merge "Validate Dockerfile indentation in pep8"Zuul1-2/+8
2018-01-09Make validate-all-dockerfile work with python3Jeffrey Zhang1-1/+1
Change-Id: I9895c958a4cea91fca014d8f28f448a00b2ae02c
2017-12-05Validate Dockerfile indentation in pep8Martin André1-2/+8
Delegate code style validation to computers, they're better than human at it :) This commit adds a new `tools/validate-indentation.sh` script that errors when it finds an indented Dockerfile instruction, and enables the validation in the pep8 check. Also adjust the logic of `tools/validate-all-dockerfiles.sh` so that it doesn't stop on first errors but instead shows all of them. Fixes the remaining indentations in Dockerfiles. Change-Id: I53c0d38304cb4f6d64a5dfab67f70d69b3eae587
2016-05-26Add support to lint the install commands in DockerfilesSwapnil Kulkarni (coolsvap)1-0/+11
Change-Id: Icb47ba8b13b13889e28bb285321f11344400edc2 Closes-Bug:#1582618