Sign inSign up

deanwilson/puppet-lint

By deanwilson

•Updated almost 11 years ago

Run puppet-lint over all files in a given volume

Image
1

6.8K

deanwilson/puppet-lint repository overview

⁠UnixDaemon puppet-lint Docker image

A simple docker image that runs puppet-lint over all files in a given volume.

To use this image you need to specify a directory, containing your puppet modules, that is presented to the container as the /modules/ directory. Puppet-lint then runs over its contents, with the default checks, and --with-filename --fail-on-warnings options. Any violations are then printed to stdout.

⁠Examples

Run puppet-lint over all files in ~/my-modules with default options -

$ docker run -v ~/my-modules:/module/ deanwilson/puppet-lint

Run puppet lint over a specific module located in the ~/my-modules directory -

$ docker run -v ~/my-modules:/module/ deanwilson/puppet-lint my-module

Run puppet-lint over ~/my-modules without checking for class documentation -

$ docker run -v ~/my-modules:/module/ deanwilson/puppet-lint --no-documentation-check

Run puppet-lint over a specific file -

$ docker run -v ~/my-modules:/module deanwilson/puppet-lint lib/jenkins/manifests/master.pp

Display the puppet-lint options -

$ docker run -v ~/my-modules:/module/ deanwilson/puppet-lint --help
⁠Building the image

To build the image run

$ docker build -t deanwilson/puppet-lint --name puppet-lint .

Tag summary

Content type

Image

Digest

sha256:054f9be95…

Size

92.2 MB

Last updated

almost 11 years ago

docker pull deanwilson/puppet-lint