Pre-Commit hooks for validating Docker projects
Go to file
Ian Fijolek 95effa7859
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Add installation instructions
Fixes #11
2023-04-18 17:17:43 -07:00
tests Add some tests and drone to run them 2020-01-28 15:21:42 -05:00
.drone.yml Change drone steps 2020-09-19 21:26:29 +00:00
.gitignore Initial commit 2018-05-21 10:31:17 -07:00
.pre-commit-config.yaml Add pre-commit hooks of our own 2020-09-19 20:07:34 +00:00
.pre-commit-hooks.yaml Update regex to also detect compose.yaml files 2023-04-08 23:30:53 +02:00
compose-check.sh Prefer docker compose v2 2023-04-14 12:35:01 +01:00
hadolint-deprecation.sh Remove hadolint and add deprecation notice 2021-04-09 10:11:11 -07:00
LICENSE Initial commit 2018-05-21 10:31:17 -07:00
Makefile Add pre-commit hooks of our own 2020-09-19 20:07:34 +00:00
README.md Add installation instructions 2023-04-18 17:17:43 -07:00

docker-pre-commit

A set of pre-commit hooks for Docker services

Installation

Add the following to your .pre-commit-config.yaml file

  - repo: https://github.com/iamthefij/docker-pre-commit
    rev: master
    hooks:
      - id: docker-compose-check

and then run pre-commit autoupdate.

Hooks

docker-compose-check

Verifies that docker-compose files are valid by using docker-compose config to parse them.

hadolint (Removed)

These hooks have been removed in favor of the ones that have been added to https://github.com/hadolint/hadolint