Docker container with utilities to process YAML files (yamllint...).
Let's say that you have a file foo.yml
in your current working directory that you want to validate:
Mac/Linux
cat foo.yml | docker run --rm -i --net=none leplusorg/yaml yamllint -
Windows
type foo.yml | docker run --rm -i --net=none leplusorg/yaml yamllint -
Same thing, assuming that you have a file foo.yml
in your current working directory that you want to validate:
Mac/Linux
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" leplusorg/yaml yamllint /tmp/foo.yml
Windows
In cmd
:
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/yaml yamllint /tmp/foo.yml
In PowerShell:
docker run --rm -t --net=none -v "${PWD}:/tmp" leplusorg/yaml yamllint /tmp/foo.yml
To know more command-line options of yamllint
:
docker run --rm --net=none leplusorg/yaml yamllint -h
Please use this link (GitHub account required) to request that a new tool be added to the image. I am always interested in adding new capabilities to these images.