Docker image for https://github.com/marionebl/commitlint
10K+
Docker image for commitlint
Repository: https://github.com/gtramontina/docker-commitlint
$ 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):
Content type
Image
Digest
Size
42.2 MB
Last updated
over 6 years ago
docker pull gtramontina/commitlint:8.3.5