Docker to launch librarian-puppet
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.librarian/puppet
.gitignore
Dockerfile
README.md
entrypoint.sh

README.md

Docker : Puppet tools

Docker to launch librarian-puppet or puppet-lint

Default : Librarian Puppet

Launch

docker run --tty --interactive --rm --user $(id -u):$(id -g) --volume $(pwd):/puppet atolcd/puppet-tools:latest librarian-puppet <args>

Add to .bashrc or .zshrc

librarian-puppet () {
    tty=
    tty -s && tty=--tty
    docker run \
        $tty \
        --interactive \
        --rm \
        --volume $(pwd):/puppet \
        atolcd/puppet-tools:latest "librarian-puppet $@"
}

Alternative : Puppet lint

Launch

docker run --tty --interactive --rm --user $(id -u):$(id -g) --volume $(pwd):/puppet atolcd/puppet-tools:latest puppet-lint <args>

Add to .bashrc or .zshrc

puppet-lint () {
    tty=
    tty -s && tty=--tty
    docker run \
        $tty \
        --interactive \
        --rm \
        --volume $(pwd):/puppet \
        atolcd/puppet-tools:latest "puppet-lint $@"
}