Class: Mrsk::Commands::Builder::Base
Constant Summary
Mrsk::Commands::Base::MAX_LOG_SIZE
Instance Attribute Summary
#config
Instance Method Summary
collapse
#initialize, #run_over_ssh
Instance Method Details
#build_args ⇒ Object
8
9
10
|
# File 'lib/mrsk/commands/builder/base.rb', line 8
def build_args
argumentize "--build-arg", args, redacted: true
end
|
#build_secrets ⇒ Object
12
13
14
|
# File 'lib/mrsk/commands/builder/base.rb', line 12
def build_secrets
argumentize "--secret", secrets.collect { |secret| [ "id", secret ] }
end
|
16
17
18
|
# File 'lib/mrsk/commands/builder/base.rb', line 16
def build_tags
[ "-t", config.absolute_image, "-t", config.latest_image ]
end
|
#pull ⇒ Object
4
5
6
|
# File 'lib/mrsk/commands/builder/base.rb', line 4
def pull
docker :pull, config.absolute_image
end
|