Browse Source

Remove hadolint and add deprecation notice

master
IamTheFij 1 year ago
parent
commit
5a0378fee5
  1. 14
      .pre-commit-hooks.yaml
  2. 7
      README.md
  3. 8
      hadolint-deprecation.sh

14
.pre-commit-hooks.yaml

@ -5,15 +5,17 @@
language: script
entry: compose-check.sh
files: docker-compose.y[a]{0,1}ml$
- id: hadolint
name: Lint Dockerfiles
description: Runs hadolint Docker image to lint Dockerfiles
language: docker_image
entry: hadolint/hadolint hadolint
description: Deprecated! Runs hadolint Docker image to lint Dockerfiles
language: script
entry: hadolint-deprecation.sh
files: Dockerfile
- id: hadolint-system
name: Lint Dockerfiles
description: Runs system hadolint to lint Dockerfiles
language: system
entry: hadolint
description: Deprecated! Runs system hadolint to lint Dockerfiles
language: script
entry: hadolint-deprecation.sh
files: Dockerfile

7
README.md

@ -7,8 +7,5 @@ A set of [pre-commit](http://pre-commit.com) hooks for Docker services
### docker-compose-check
Verifies that docker-compose files are valid by using `docker-compose config` to parse them.
### hadolint
Uses the [hadolint Docker image](https://hub.docker.com/r/hadolint/hadolint) to lint Dockerfiles.
### hadolint-system
Uses the whatever version of hadolint that you have installed to lint Dockerfiles. This requires you to have hadolint installed somewhere in your path.
### hadolint (Removed)
These hooks have been removed in favor of the ones that have been added to https://github.com/hadolint/hadolint

8
hadolint-deprecation.sh

@ -0,0 +1,8 @@
#! /bin/sh
echo "Hadolint hooks have been deprecated in favor of upstream"
echo "repo: https://github.com/hadolint/hadolint"
echo "Replace hook 'hadolint' with 'hadolint-docker'"
echo "Replace hook 'hadolint-system' with 'hadolint'"
exit 1
Loading…
Cancel
Save