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 language: script
entry: compose-check.sh entry: compose-check.sh
files: docker-compose.y[a]{0,1}ml$ files: docker-compose.y[a]{0,1}ml$
- id: hadolint - id: hadolint
name: Lint Dockerfiles name: Lint Dockerfiles
description: Runs hadolint Docker image to lint Dockerfiles description: Deprecated! Runs hadolint Docker image to lint Dockerfiles
language: docker_image language: script
entry: hadolint/hadolint hadolint entry: hadolint-deprecation.sh
files: Dockerfile files: Dockerfile
- id: hadolint-system - id: hadolint-system
name: Lint Dockerfiles name: Lint Dockerfiles
description: Runs system hadolint to lint Dockerfiles description: Deprecated! Runs system hadolint to lint Dockerfiles
language: system language: script
entry: hadolint entry: hadolint-deprecation.sh
files: Dockerfile files: Dockerfile

View File

@ -7,8 +7,5 @@ A set of [pre-commit](http://pre-commit.com) hooks for Docker services
### docker-compose-check ### docker-compose-check
Verifies that docker-compose files are valid by using `docker-compose config` to parse them. Verifies that docker-compose files are valid by using `docker-compose config` to parse them.
### hadolint ### hadolint (Removed)
Uses the [hadolint Docker image](https://hub.docker.com/r/hadolint/hadolint) to lint Dockerfiles. These hooks have been removed in favor of the ones that have been added to https://github.com/hadolint/hadolint
### 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.

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