Sha256: 6dee6f514af52b3a1d301b36bf195273cbc753250a68ec0df0a6cde286aa1cb2
Contents?: true
Size: 823 Bytes
Versions: 8
Compression:
Stored size: 823 Bytes
Contents
module Percheron module Container module Actions class Build def initialize(container, nocache: false) @container = container @nocache = nocache end def execute! base_dir = container.dockerfile.dirname.to_s $logger.debug "Building '#{container.image}'" Docker::Image.build_from_dir(base_dir, build_opts) do |out| $logger.debug '%s' % [ out.strip ] end end private attr_reader :container, :nocache def build_opts { 'dockerfile' => container.dockerfile.basename.to_s, 't' => container.image, 'forcerm' => true, 'nocache' => nocache } end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems