Remove hadolint and add deprecation notice
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2021-04-09 10:11:11 -07:00
parent 9a22a2046c
commit 5a0378fee5
3 changed files with 18 additions and 11 deletions

View File

@ -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

View File

@ -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 Executable file
View File

@ -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