Class: Mrsk::Commands::Builder::Native::Remote
Instance Attribute Summary
#config
Instance Method Summary
collapse
Methods inherited from Base
#build_args, #build_secrets, #pull
#initialize, #run_over_ssh
Instance Method Details
#create ⇒ Object
4
5
6
7
8
|
# File 'lib/mrsk/commands/builder/native/remote.rb', line 4
def create
chain \
create_context,
create_buildx
end
|
#info ⇒ Object
27
28
29
30
31
|
# File 'lib/mrsk/commands/builder/native/remote.rb', line 27
def info
chain \
docker(:context, :ls),
docker(:buildx, :ls)
end
|
#push ⇒ Object
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/mrsk/commands/builder/native/remote.rb', line 16
def push
docker :buildx, :build,
"--push",
"--platform", platform,
"--builder", builder_name,
"-t", config.absolute_image,
*build_args,
*build_secrets,
"."
end
|
#remove ⇒ Object
10
11
12
13
14
|
# File 'lib/mrsk/commands/builder/native/remote.rb', line 10
def remove
chain \
remove_context,
remove_buildx
end
|