Skip to content

Commit

Permalink
(maint) use local installed hadolint due to moby/moby#35425
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Rhodes committed Nov 5, 2018
1 parent 23ff2b3 commit e285802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/ci/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def lint(container, is_nightly: false)

# run this command from the 'docker' directory
Dir.chdir(File.dirname(File.dirname(__FILE__))) do
output = %x(docker run --rm -v #{File.join(Dir.pwd, container, dockerfile)}:/Dockerfile:ro -i #{lint_image} hadolint --ignore DL3008 --ignore DL3018 --ignore DL4000 --ignore DL4001 Dockerfile)
output = %x(hadolint --ignore DL3008 --ignore DL3018 --ignore DL4000 --ignore DL4001 #{File.join(Dir.pwd, container, dockerfile)})
status = $?.exitstatus
puts output
fail "Running hadolint against #{File.join(container, dockerfile)} failed!" unless status == 0
Expand Down

0 comments on commit e285802

Please sign in to comment.