2018-05-21 17:31:17 +00:00
|
|
|
# docker-pre-commit
|
|
|
|
|
|
|
|
A set of [pre-commit](http://pre-commit.com) hooks for Docker services
|
|
|
|
|
2023-04-19 00:17:43 +00:00
|
|
|
# Installation
|
|
|
|
|
|
|
|
Add the following to your `.pre-commit-config.yaml` file
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
- repo: https://github.com/iamthefij/docker-pre-commit
|
|
|
|
rev: master
|
|
|
|
hooks:
|
|
|
|
- id: docker-compose-check
|
|
|
|
```
|
|
|
|
|
|
|
|
and then run `pre-commit autoupdate`.
|
|
|
|
|
|
|
|
|
2018-05-21 17:31:17 +00:00
|
|
|
## Hooks
|
|
|
|
|
|
|
|
### docker-compose-check
|
|
|
|
Verifies that docker-compose files are valid by using `docker-compose config` to parse them.
|