Class: Kamal::Commands::Builder::Multiarch::Remote

Inherits:
Kamal::Commands::Builder::Multiarch show all
Defined in:
lib/kamal/commands/builder/multiarch/remote.rb

Constant Summary

Constants inherited from Base

Base::ENDPOINT_DOCKER_HOST_INSPECT

Constants inherited from Kamal::Commands::Base

Kamal::Commands::Base::DOCKER_HEALTH_STATUS_FORMAT

Instance Attribute Summary

Attributes inherited from Kamal::Commands::Base

#config

Instance Method Summary collapse

Methods inherited from Kamal::Commands::Builder::Multiarch

#info, #push

Methods inherited from Base

#build_context, #build_options, #clean, #first_mirror, #pull, #validate_image

Methods inherited from Kamal::Commands::Base

#container_id_for, #initialize, #make_directory, #make_directory_for, #remove_directory, #run_over_ssh

Constructor Details

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

Instance Method Details

#config_context_hostsObject



21
22
23
# File 'lib/kamal/commands/builder/multiarch/remote.rb', line 21

def config_context_hosts
  [ local_host, remote_host ].compact
end

#context_hostsObject



15
16
17
18
19
# File 'lib/kamal/commands/builder/multiarch/remote.rb', line 15

def context_hosts
  chain \
    context_host(builder_name_with_arch(local_arch)),
    context_host(builder_name_with_arch(remote_arch))
end

#createObject



2
3
4
5
6
7
# File 'lib/kamal/commands/builder/multiarch/remote.rb', line 2

def create
  combine \
    create_contexts,
    create_local_buildx,
    append_remote_buildx
end

#removeObject



9
10
11
12
13
# File 'lib/kamal/commands/builder/multiarch/remote.rb', line 9

def remove
  combine \
    remove_contexts,
    super
end