Class: Dash::Dockerfile::Rules::LatestBase

Inherits:
Base
  • Object
show all
Defined in:
lib/dash/dockerfile/rules/latest_base.rb

Overview

An unpinned base image makes a build unreproducible: the same Dockerfile builds a different image tomorrow, and nothing in the deploy says so.

Constant Summary collapse

SUGGESTION =
"pin a specific tag, or a digest for a build that must be reproducible"

Instance Method Summary collapse

Instance Method Details

#findings ⇒ Object



6
7
8
# File 'lib/dash/dockerfile/rules/latest_base.rb', line 6

def findings
  document.stages.filter_map { |stage| finding_for(stage) }
end