Use docker info to get arch

This commit is contained in:
Donal McBreen
2024-08-28 15:50:46 +01:00
parent eab7d3adc5
commit 5f2384f123
7 changed files with 19 additions and 9 deletions

View File

@@ -145,10 +145,10 @@ class CommandsBuilderTest < ActiveSupport::TestCase
end
def local_arch
`uname -m`.strip == "x86_64" ? "amd64" : "arm64"
Kamal::Utils.docker_arch
end
def remote_arch
`uname -m`.strip == "x86_64" ? "arm64" : "amd64"
Kamal::Utils.docker_arch == "arm64" ? "amd64" : "arm64"
end
end