ReleaseEngineering/PuppetAgain/HowTo/Hack on PuppetAgain: Difference between revisions

Jump to navigation Jump to search
Update puppet-lint documentation
No edit summary
(Update puppet-lint documentation)
Line 101: Line 101:
== Test your code on the local machine ==
== Test your code on the local machine ==


Each developer should test his puppet code on the local machine. You can do this using a docker image:
Before committing your changes you should check your code with puppet-lint. A lightweight [https://hub.docker.com/r/mozillarelops/puppet-linter/ Docker image] has been created to make this easier, as installing [http://puppet-lint.com/ puppet-lint] natively requires a number of dependencies.
* install and configure docker on your local machine: https://docs.docker.com/engine/installation/#supported-platforms
 
* run: docker run --rm --name puppet-linter -v <path to your local puppet environment>:/puppet dividehex/releng-puppet-test:0.8
* [https://docs.docker.com/engine/installation/#supported-platforms Install and configure Docker] on your local machine.
* Download the Docker image:
  docker pull mozillarelops/puppet-linter
* Run it, inserting the path to your checkout of the puppet repo:
  docker run --rm --name puppet-linter -v <path_to_puppet>:/puppet mozillarelops/puppet-linter


= Patch Guidelines / Review Checklist =
= Patch Guidelines / Review Checklist =
Confirmed users
141

edits

Navigation menu