MCPcopy Create free account
hub / github.com/apache/arrow / define_docker_tasks

Method define_docker_tasks

dev/tasks/linux-packages/package-task.rb:618–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616 end
617
618 def define_docker_tasks
619 namespace :docker do
620 pull_tasks = []
621 push_tasks = []
622
623 (apt_targets + yum_targets).each do |target|
624 distribution, version, architecture = split_target(target)
625 os = "#{distribution}-#{version}"
626
627 namespace :pull do
628 desc "Pull built image for #{target}"
629 task target do
630 docker_pull(os, architecture)
631 end
632 pull_tasks << "docker:pull:#{target}"
633 end
634
635 namespace :push do
636 desc "Push built image for #{target}"
637 task target do
638 docker_push(os, architecture)
639 end
640 push_tasks << "docker:push:#{target}"
641 end
642 end
643
644 desc "Pull built images"
645 task :pull => pull_tasks
646
647 desc "Push built images"
648 task :push => push_tasks
649 end
650 end
651end

Callers

nothing calls this directly

Calls 2

docker_pullFunction · 0.85
eachMethod · 0.45

Tested by

no test coverage detected