Add hadolint for Dockerfile linting
What does this MR do?
- Adds
hadolintto the local dev tools (managed by Mise).- Note:
hadolintis already present in therunner-lintersimage used in CI.
- Note:
- Adds Make targets for linting Dockerfiles.
- Adds the
dockerfile:lintMR pipeline job, which lints Dockerfiles.
Why was this MR needed?
Dockerfiles are not linted currently, which is a gap in our code quality enforcement.
What's the best way to test this MR?
- Run
mise install && make lint-dockerfileslocally. - Check the relevant CI job:
dockerfile:lintin theqastage.
Existing issues flagged by hadolint should appear. These will be fixed in a follow-up MR.
What are the relevant issue numbers?
Closes #25412 (closed)
Edited by Daniel Keenan