Class: Kamal::Commands::Builder::Native::Remote

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

Constant Summary

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 Base

#build_context, #build_options, #clean, #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

#createObject



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

def create
  chain \
    create_context,
    create_buildx
end

#infoObject



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

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

#pushObject



20
21
22
23
24
25
26
27
# File 'lib/kamal/commands/builder/native/remote.rb', line 20

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

#removeObject



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

def remove
  chain \
    remove_context,
    remove_buildx
end