aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2019-01-30 14:28:12 +0100
committerAlex Schultz <aschultz@redhat.com>2019-06-07 16:32:36 -0600
commit378a16c3572161687f43ddaf77d12c39bfacd760 (patch)
tree4431258eb4fa186e38d66cf0b772a1dcf0463896 /setup.py
parent498c57fcac31da9268918ec6c188fe2aae0c4906 (diff)
downloadkolla-378a16c3572161687f43ddaf77d12c39bfacd760.tar.gz
kolla-378a16c3572161687f43ddaf77d12c39bfacd760.zip
Add script to check for forbidden instructions
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
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions