class Stax::Cmd::Ecr
Public Instance Methods
images()
click to toggle source
# File lib/stax/mixin/ecr.rb, line 56 def images (options[:repositories] || my.ecr_repository_names).each do |repo| debug("Images in repo #{repo}") print_table Aws::Ecr.images(repository_name: repo).map { |i| [i.image_tags.join(' '), i.image_digest, human_bytes(i.image_size_in_bytes), i.image_pushed_at] } end end
login()
click to toggle source
# File lib/stax/mixin/ecr.rb, line 39 def login Aws::Ecr.auth.each do |auth| debug("Login to ECR registry #{auth.proxy_endpoint}") user, pass = Base64.decode64(auth.authorization_token).split(':') system "docker login -u #{user} -p #{pass} #{auth.proxy_endpoint}" end end
registry()
click to toggle source
# File lib/stax/mixin/ecr.rb, line 33 def registry puts my.ecr_registry end
repositories()
click to toggle source
# File lib/stax/mixin/ecr.rb, line 48 def repositories print_table Aws::Ecr.repositories(repository_names: my.ecr_repository_names).map { |r| [r.repository_name, r.repository_uri, r.created_at] } end