Class: TinyCI::Builders::RktBuilder
- Defined in:
- lib/tinyci/builders/rkt_builder.rb
Instance Method Summary collapse
Methods inherited from Executor
Methods included from Subprocesses
#execute, #execute_pipe, #execute_stream
Constructor Details
This class inherits a constructor from TinyCI::Executor
Instance Method Details
#build ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/tinyci/builders/rkt_builder.rb', line 6 def build cmd = [ 'sudo', 'rkt', 'run', '--net=host', '--insecure-options=image', '--volume', "src,kind=host,source=#{@config[:target]}/src,readOnly=false", '--mount', "volume=src,target=#{@config[:src_path]}", @config[:image], '--working-dir', @config[:src_path], '--exec', @config[:command] ] log_info "RKT build command: #{cmd.join(' ')}" execute_stream(*cmd, label: 'build') end |