Class: Kamal::Commands::Builder::Multiarch
- Inherits:
-
Base
- Object
- Kamal::Commands::Base
- Base
- Kamal::Commands::Builder::Multiarch
- Defined in:
- lib/kamal/commands/builder/multiarch.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Remote
Constant Summary
Constants inherited from Kamal::Commands::Base
Kamal::Commands::Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary
Attributes inherited from Kamal::Commands::Base
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
#create ⇒ Object
2 3 4 |
# File 'lib/kamal/commands/builder/multiarch.rb', line 2 def create docker :buildx, :create, "--use", "--name", builder_name end |
#info ⇒ Object
10 11 12 13 14 |
# File 'lib/kamal/commands/builder/multiarch.rb', line 10 def info combine \ docker(:context, :ls), docker(:buildx, :ls) end |
#push ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/kamal/commands/builder/multiarch.rb', line 16 def push docker :buildx, :build, "--push", "--platform", platform_names, "--builder", builder_name, *, build_context end |
#remove ⇒ Object
6 7 8 |
# File 'lib/kamal/commands/builder/multiarch.rb', line 6 def remove docker :buildx, :rm, builder_name end |