Skip to content

Docker container now runs 'yamllint' on entry.#2

Open
housni wants to merge 1 commit intosdesbure:masterfrom
housni:feature/docker-enters-with-yamllint
Open

Docker container now runs 'yamllint' on entry.#2
housni wants to merge 1 commit intosdesbure:masterfrom
housni:feature/docker-enters-with-yamllint

Conversation

@housni
Copy link
Copy Markdown

@housni housni commented Aug 11, 2018

Thanks for creating this repo. I'm using it for checking my Travis YAML file for Sheldon: https://github.com/housni/Sheldon/blob/cleanup/Makefile#L244

My PR does the following:

  • REMOVES WORKDIR from Dockerfile. It makes more sense to mount it on a Docker run so that we can specify the directory mount dir and the workdir and not have to worry about mapping to /yaml.
  • ADDS an ENTRYPOINT with the yamllint executable so that, in a docker run, you can just pass the file names into the container and yamllint will run against them. Failure to provide file names will result in yamllint --version being run (default).
  • CHANGES the README.md contents to reflect the changes mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant