Class: Kamal::Commands::Builder::Remote
- Inherits:
-
Base
show all
- Defined in:
- lib/kamal/commands/builder/remote.rb
Direct Known Subclasses
Hybrid
Constant Summary
Constants inherited
from Base
Base::ENDPOINT_DOCKER_HOST_INSPECT
Kamal::Commands::Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary
#config
Instance Method Summary
collapse
Methods inherited from Base
#build_context, #build_options, #clean, #first_mirror, #pull, #push, #validate_image
#container_id_for, #ensure_docker_installed, #initialize, #make_directory, #make_directory_for, #remove_directory, #remove_file, #run_over_ssh
Instance Method Details
#create ⇒ Object
2
3
4
5
6
|
# File 'lib/kamal/commands/builder/remote.rb', line 2
def create
chain \
create_remote_context,
create_buildx
end
|
#info ⇒ Object
14
15
16
17
18
|
# File 'lib/kamal/commands/builder/remote.rb', line 14
def info
chain \
docker(:context, :ls),
docker(:buildx, :ls)
end
|
#inspect_builder ⇒ Object
20
21
22
23
24
25
|
# File 'lib/kamal/commands/builder/remote.rb', line 20
def inspect_builder
combine \
combine(inspect_buildx, inspect_remote_context),
[ "(echo no compatible builder && exit 1)" ],
by: "||"
end
|
#login_to_registry_locally? ⇒ Boolean
27
28
29
|
# File 'lib/kamal/commands/builder/remote.rb', line 27
def login_to_registry_locally?
false
end
|
#push_env ⇒ Object
31
32
33
|
# File 'lib/kamal/commands/builder/remote.rb', line 31
def push_env
{ "BUILDKIT_NO_CLIENT_TOKEN" => "1" }
end
|
#remove ⇒ Object
8
9
10
11
12
|
# File 'lib/kamal/commands/builder/remote.rb', line 8
def remove
chain \
remove_remote_context,
remove_buildx
end
|