X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9c6d9afecb6502d7f4ace6e1817d3f650cadf04e..794cc957324de66edab45373053be3e601090f1f:/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