Docker to launch librarian-puppet or puppet-lint
docker run --tty --interactive --rm --user $(id -u):$(id -g) --volume $(pwd):/puppet atolcd/puppet-tools:latest librarian-puppet <args>
librarian-puppet () {
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $(pwd):/puppet \
atolcd/puppet-tools:latest "librarian-puppet $@"
}
docker run --tty --interactive --rm --user $(id -u):$(id -g) --volume $(pwd):/puppet atolcd/puppet-tools:latest puppet-lint <args>
puppet-lint () {
tty=
tty -s && tty=--tty
docker run \
$tty \
--interactive \
--rm \
--volume $(pwd):/puppet \
atolcd/puppet-tools:latest "puppet-lint $@"
}