Sign inSign up

gtramontina/commitlint

By gtramontina

•Updated over 6 years ago

Docker image for https://github.com/marionebl/commitlint

Image
2

10K+

gtramontina/commitlint repository overview

Docker image for commitlint⁠


Repository: https://github.com/gtramontina/docker-commitlint⁠


⁠Running:
$ docker run --rm gtramontina/commitlint:<version>

You'll get a /app work directory, so all you need to do is mount your git-based project in the that directory with the -v, --volume docker parameter:

--volume $(pwd):/app

If you prefer, you can mount only your .git directory and your configuration⁠ file, like so:

--volume $(pwd)/.git:/app/.git \
--volume $(pwd)/.commitlintrc:/app/.commitlintrc

Or, if, for whatever reason, you need a different work directory, you can simply set it with -w, --workdir:

--workdir /my-app \
--volume $(pwd):/my-app

Note 1: If you want commitlint to read from STDIN, don't forget to set the -i, --interactive flag to keep STDIN open.

Note 2: This image ships with the following commitlint's configuration preset packages (so you can extend them in your configuration⁠ file):

Tag summary

Content type

Image

Digest

Size

42.2 MB

Last updated

over 6 years ago

docker pull gtramontina/commitlint:8.3.5