X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..fea2cc161b8b9f15cc14a353d4956d911aab8752:/cookbooks/apt/recipes/docker.rb diff --git a/cookbooks/apt/recipes/docker.rb b/cookbooks/apt/recipes/docker.rb index 7c8780779..2aeb832e3 100644 --- a/cookbooks/apt/recipes/docker.rb +++ b/cookbooks/apt/recipes/docker.rb @@ -19,6 +19,12 @@ include_recipe "apt" +docker_platform = if platform?("debian") + "debian" + else + "ubuntu" + end + docker_arch = if arm? "arm64" else @@ -26,8 +32,8 @@ docker_arch = if arm? end apt_repository "docker" do - uri "https://download.docker.com/linux/ubuntu" + 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