X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b73176eda2a83b7fc0170a5639ad036b1c897773..d3a3692e6f1db56a3ff4d72dd0aa0ba3aeaa6ad2:/cookbooks/apt/recipes/docker.rb?ds=sidebyside diff --git a/cookbooks/apt/recipes/docker.rb b/cookbooks/apt/recipes/docker.rb index f28c15b0b..2aeb832e3 100644 --- a/cookbooks/apt/recipes/docker.rb +++ b/cookbooks/apt/recipes/docker.rb @@ -19,9 +19,21 @@ include_recipe "apt" +docker_platform = if platform?("debian") + "debian" + else + "ubuntu" + end + +docker_arch = if arm? + "arm64" + else + "amd64" + end + apt_repository "docker" do - uri "https://download.docker.com/linux/ubuntu" - arch "amd64" + uri "https://download.docker.com/linux/#{docker_platform}" + arch docker_arch components ["stable"] - key "https://download.docker.com/linux/ubuntu/gpg" + key "https://download.docker.com/linux/#{docker_platform}/gpg" end