An image for https://github.com/marionebl/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):
@commitlint/config-angular
@commitlint/config-angular-type-enum
@commitlint/config-conventional
@commitlint/config-lerna-scopes
@commitlint/config-patternplate
$ make build # Builds a new image
$ make test # Runs/tests the image
$ make push # Pushes the image up
$ make clean # Removes any generated artifacts
$ make clobber # Removes artifacts and generated images