Class: Kamal::Commands::Builder::Native::Remote
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, #validate_image
#container_id_for, #initialize, #make_directory, #make_directory_for, #remove_directory, #run_over_ssh
Instance Method Details
#config_context_hosts ⇒ Object
33
34
35
|
# File 'lib/kamal/commands/builder/native/remote.rb', line 33
def config_context_hosts
[ remote_host ]
end
|
#context_hosts ⇒ Object
29
30
31
|
# File 'lib/kamal/commands/builder/native/remote.rb', line 29
def context_hosts
context_host(builder_name_with_arch)
end
|
#create ⇒ Object
2
3
4
5
6
|
# File 'lib/kamal/commands/builder/native/remote.rb', line 2
def create
chain \
create_context,
create_buildx
end
|
#info ⇒ Object
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
|
#push ⇒ Object
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
|
#remove ⇒ Object
8
9
10
11
12
|
# File 'lib/kamal/commands/builder/native/remote.rb', line 8
def remove
chain \
remove_context,
remove_buildx
end
|