leplusorg / docker-yaml

Docker container with utilities to process YAML files (yamllint...).

Home Page:https://hub.docker.com/r/leplusorg/yaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YAML

Docker container with utilities to process YAML files (yamllint...).

Docker Build Docker Stars Docker Pulls Docker Automated Docker Build Docker Version

Example not using the filesystem

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 -

Example using the filesystem

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

Help

To know more command-line options of yamllint:

docker run --rm --net=none leplusorg/yaml yamllint -h

Request new tool

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.

About

Docker container with utilities to process YAML files (yamllint...).

https://hub.docker.com/r/leplusorg/yaml

License:Apache License 2.0


Languages

Language:Dockerfile 100.0%