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

Method resolve_docker_image

dev/release/binary-task.rb:2320–2345  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

2318
2319 private
2320 def resolve_docker_image(target)
2321 case target
2322 when /-(?:arm64|aarch64)\z/
2323 target = Regexp.last_match.pre_match
2324 platform = "linux/arm64"
2325 else
2326 platform = "linux/amd64"
2327 end
2328
2329 case target
2330 when /\Acentos-(\d+)-stream\z/
2331 centos_stream_version = $1
2332 image = "quay.io/centos/centos:stream#{centos_stream_version}"
2333 else
2334 case platform
2335 when "linux/arm64"
2336 image = "arm64v8/"
2337 else
2338 image = ""
2339 end
2340 target = target.gsub(/\Aamazon-linux/, "amazonlinux")
2341 image << target.gsub(/-/, ":")
2342 end
2343
2344 [platform, image]
2345 end
2346
2347 def verify_apt_sh
2348 "/host/dev/release/verify-apt.sh"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected