Class: Mrsk::Commands::Builder::Base

Inherits:
Mrsk::Commands::Base show all
Defined in:
lib/mrsk/commands/builder/base.rb

Direct Known Subclasses

Multiarch, Native

Constant Summary

Constants inherited from Mrsk::Commands::Base

Mrsk::Commands::Base::MAX_LOG_SIZE

Instance Attribute Summary

Attributes inherited from Mrsk::Commands::Base

#config

Instance Method Summary collapse

Methods inherited from Mrsk::Commands::Base

#initialize, #run_over_ssh

Constructor Details

This class inherits a constructor from Mrsk::Commands::Base

Instance Method Details

#build_argsObject



8
9
10
# File 'lib/mrsk/commands/builder/base.rb', line 8

def build_args
  argumentize "--build-arg", args, redacted: true
end

#build_secretsObject



12
13
14
# File 'lib/mrsk/commands/builder/base.rb', line 12

def build_secrets
  argumentize "--secret", secrets.collect { |secret| [ "id", secret ] }
end

#build_tagsObject



16
17
18
# File 'lib/mrsk/commands/builder/base.rb', line 16

def build_tags
  [ "-t", config.absolute_image, "-t", config.latest_image ]
end

#pullObject



4
5
6
# File 'lib/mrsk/commands/builder/base.rb', line 4

def pull
  docker :pull, config.absolute_image
end