Skip to content

cytopia/docker-ansible-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for ansible-lint

Build Status Tag License

All #awesome-ci Docker images

ansible ansible-lint awesome-ci black checkmake eslint file-lint gofmt golint jsonlint phpcs pycodestyle pylint terraform-docs terragrunt yamllint

All #awesome-ci Makefiles

Visit cytopia/makefiles for seamless project integration, minimum required best-practice code linting and CI.

View Dockerfile on GitHub.

Docker hub

Tiny Alpine-based multistage-build dockerized version of ansible-lint[1]. The image is built nightly against the latest stable version of ansible-lint and pushed to Dockerhub.

[1] Official project: https://github.com/ansible/ansible-lint

Available Docker image versions

Docker tag Build from
latest Current stable ansible-lint version

Docker mounts

The working directory inside the Docker container is /data/ and should be mounted locally to the root of your project where your .ansible-lint config file is located.

Usage

# Single playbook
docker run --rm -v $(pwd):/data cytopia/ansible-lint playbook.yml

# All playbooks via wildcard
docker run --rm -v $(pwd):/data cytopia/ansible-lint *.yml

Related #awesome-ci projects

Docker images

Save yourself from installing lot's of dependencies and pick a dockerized version of your favourite linter below for reproducible local or remote CI tests:

Docker image Type Description
awesome-ci Basic Tools for git, file and static source code analysis
file-lint Basic Baisc source code analysis
jsonlint Basic Lint JSON files
yamllint Basic Lint Yaml files
ansible Ansible Multiple versoins of Ansible
ansible-lint Ansible Lint Ansible
gofmt Go Format Go source code
golint Go Lint Go code
eslint Javascript Lint Javascript code
checkmake Make Lint Makefiles
phpcs PHP PHPCodeSniffer and Code Beautifier and Fixer
black Python The uncompromising Python code formatter
pycodestyle Python Python style guide checker
pylint Python Python source code, bug and quality checker
terraform-docs Terraform Terraform doc generator (TF 0.12 ready)
terragrunt Terraform Terragrunt and Terraform

Makefiles

Visit cytopia/makefiles for dependency-less, seamless project integration and minimum required best-practice code linting for CI. The provided Makefiles will only require GNU Make and Docker itself removing the need to install anything else.

License

MIT License

Copyright (c) 2019 cytopia

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •