| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
$ docker run --rm getshipup/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):/appIf you prefer, you can mount only your .git directory and your configuration file, like so:
--volume $(pwd)/.git:/app/.git \
--volume $(pwd)/.commitlintrc:/app/.commitlintrcOr, if, for whatever reason, you need a different work directory, you can simply set it with -w, --workdir:
--workdir /my-app \
--volume $(pwd):/my-appNote 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):
$ 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| Back | FazBrowse Home | New Git URL |