python:3-alpine
-based dockerization of yamllint, the linter for YAML files.
As the site says:
yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces, indentation, etc.
The source code for this image is hosted on GitHub in the backplane/conex repo.
The following shell function can assist in running this image interactively:
yamllint() {
docker run \
--rm \
--interactive \
--tty \
--volume "$(pwd):/work" \
"backplane/yamllint" \
"$@"
}