]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/docker.rb
Update Node.js to the 20.x branch
[chef.git] / cookbooks / apt / recipes / docker.rb
index 7c8780779687ae8a48ff71954cac9bf1516e802c..2aeb832e3e50cdc7fa9e3a871d1f70f462cf1f6b 100644 (file)
 
 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