edx-cookiecutters
edx-cookiecutters copied to clipboard
chore: Add Dockerfile linter
This PR is an attempt at testing out a fairly nascent linter and is being added due to a Slack converstion with SRE.
See https://github.com/openedx/edx-cookiecutters/pull/267 for competing linter
Currently we review dockerfiles by pasting them into https://www.fromlatest.io/#/ and reading https://2u-internal.atlassian.net/wiki/spaces/SRE/pages/19265642/Dockerfile+Best+Practices at 2U.
Docs: https://github.com/marketplace/actions/docker-lint (16 stars) Maintainer: https://github.com/luke142367 (4th year at Imperial College London)
Next steps:
- Address the three findings
- Consider adding an rc file based on https://github.com/replicatedhq/dockerfilelint#configuring