From 3a31315d9e495d0dda0f77d80939cf41f3cee759 Mon Sep 17 00:00:00 2001 From: cn Date: Sat, 23 Oct 2021 10:40:46 +0200 Subject: [PATCH] ci: use hadolint binary instead of Docker image - has lower complexity and works equally well in CI --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 32c5977..d6b8ec4 100644 --- a/Rakefile +++ b/Rakefile @@ -26,7 +26,9 @@ hadolint_version = 'v2.7.0' desc 'Run hadolint for Dockerfile linting' task :hadolint do - sh "docker run --rm -i hadolint/hadolint:#{hadolint_version} hadolint --ignore DL3018 - < docker/Dockerfile" + sh "wget -q -O ./hadolint https://github.com/hadolint/hadolint/releases/download/#{hadolint_version}/hadolint-Linux-x86_64" + sh 'chmod a+x ./hadolint' + sh './hadolint --ignore DL3018 docker/Dockerfile' end task default: [:rubocop, :spec, 'bundle:audit', :solargraph]