Pre-Commit hooks for validating Docker projects
Go to file
IamTheFij d67a852ae8
continuous-integration/drone/push Build is passing Details
Add test hooks with try-repo
2023-10-26 14:56:42 -07:00
tests Add some tests and drone to run them 2020-01-28 15:21:42 -05:00
.drone.yml Use personal drone-pre-commit image that has docker-compose binary installed 2023-10-26 14:53:53 -07: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 Fix regex to match a literal dot before extension 2023-04-19 09:19:08 -07:00
LICENSE Initial commit 2018-05-21 10:31:17 -07:00
Makefile Add test hooks with try-repo 2023-10-26 14:56:42 -07:00
README.md Use compose plugin language in documentation 2023-04-19 09:18:55 -07:00
compose-check.sh Prefer docker compose v2 2023-04-14 12:35:01 +01:00

README.md

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.