https://github.com/mahagamal/yamllint-docker
A Docker image for yamllint
https://github.com/mahagamal/yamllint-docker
docker docker-image yamllint
Last synced: 4 months ago
JSON representation
A Docker image for yamllint
- Host: GitHub
- URL: https://github.com/mahagamal/yamllint-docker
- Owner: MahaGamal
- Created: 2019-12-26T15:17:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-26T15:59:53.000Z (almost 6 years ago)
- Last Synced: 2025-03-23T08:43:11.234Z (7 months ago)
- Topics: docker, docker-image, yamllint
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Docker image for `yamllint`
This repository provides an automated build for a lean [yamllint](https://github.com/adrienverge/yamllint) Docker image.
## Informations
* Based on Python (python:3.7-alpine3.9) official Image [python:3.7-alpine3.9](https://hub.docker.com/_/python/)
* Install [Docker](https://www.docker.com/)## Installation
Pull the image from the Docker repository.
docker pull mahaga50/yamllint
## Usage
To lint the file `test.yaml` and All files in folder `dir1` in your current directory:
```
docker run --rm -ti -v $(pwd):/workdir mahaga50/yamllint test.yaml dir1/*.yaml
```## Build
Optionally install python dependencies at build time :
docker build --rm -t mahaga50/yamllint .
docker build --rm --build-arg PYTHON_DEPS="flask_oauthlib>=0.9" -t mahaga50/yamllint .