Class: Mrsk::Commands::Builder::Native::Remote

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

Constant Summary

Constants inherited from Mrsk::Commands::Base

Mrsk::Commands::Base::MAX_LOG_SIZE

Instance Attribute Summary

Attributes inherited from Mrsk::Commands::Base

#config

Instance Method Summary collapse

Methods inherited from Base

#build_args, #build_secrets, #build_tags, #pull

Methods inherited from Mrsk::Commands::Base

#initialize, #run_over_ssh

Constructor Details

This class inherits a constructor from Mrsk::Commands::Base

Instance Method Details

#createObject



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

def create
  chain \
    create_context,
    create_buildx
end

#infoObject



25
26
27
28
29
# File 'lib/mrsk/commands/builder/native/remote.rb', line 25

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

#pushObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/mrsk/commands/builder/native/remote.rb', line 14

def push
  docker :buildx, :build,
    "--push",
    "--platform", platform,
    "--builder", builder_name,
    *build_tags,
    *build_args,
    *build_secrets,
    "."
end

#removeObject



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

def remove
  chain \
    remove_context,
    remove_buildx
end