Class: Mrsk::Commands::Builder::Native::Remote

Inherits:
Mrsk::Commands::Builder::Native show all
Defined in:
lib/mrsk/commands/builder/native/remote.rb

Constant Summary

Constants inherited from Mrsk::Commands::Base

Mrsk::Commands::Base::DOCKER_HEALTH_LOG_FORMAT, Mrsk::Commands::Base::DOCKER_HEALTH_STATUS_FORMAT

Instance Attribute Summary

Attributes inherited from Mrsk::Commands::Base

#config

Instance Method Summary collapse

Methods inherited from Base

#build_context, #build_options, #clean, #pull

Methods inherited from Mrsk::Commands::Base

#container_id_for, #initialize, #run_over_ssh

Constructor Details

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

Instance Method Details

#createObject



2
3
4
5
6
# File 'lib/mrsk/commands/builder/native/remote.rb', line 2

def create
  chain \
    create_context,
    create_buildx
end

#infoObject



23
24
25
26
27
# File 'lib/mrsk/commands/builder/native/remote.rb', line 23

def info
  chain \
    docker(:context, :ls),
    docker(:buildx, :ls)
end

#pushObject



14
15
16
17
18
19
20
21
# File 'lib/mrsk/commands/builder/native/remote.rb', line 14

def push
  docker :buildx, :build,
    "--push",
    "--platform", platform,
    "--builder", builder_name,
    *build_options,
    build_context
end

#removeObject



8
9
10
11
12
# File 'lib/mrsk/commands/builder/native/remote.rb', line 8

def remove
  chain \
    remove_context,
    remove_buildx
end