Leon Miller-Out
08/09/2023, 7:37 PMLeon Miller-Out
08/09/2023, 7:44 PM➜ ~ time docker run --platform=linux/arm64 ortussolutions/commandbox:latest box version
CommandBox 5.9.0+00721
docker run --platform=linux/arm64 ortussolutions/commandbox:latest box versio 0.04s user 0.02s system 0% cpu 5.616 total
➜ ~ time docker run --platform=linux/amd64 ortussolutions/commandbox:latest box version
CommandBox 5.9.0+00721
docker run --platform=linux/amd64 ortussolutions/commandbox:latest box versio 0.05s user 0.02s system 0% cpu 1:06.95 totalLeon Miller-Out
08/09/2023, 7:45 PMjclausen
08/09/2023, 7:48 PMjclausen
08/09/2023, 7:49 PMLeon Miller-Out
08/09/2023, 7:50 PMjclausen
08/09/2023, 7:50 PMjclausen
08/09/2023, 7:50 PMbuildx will build multi-arch and then the docker pull will pull the correct arch image.Leon Miller-Out
08/09/2023, 7:51 PMjclausen
08/09/2023, 7:52 PMarm on amd is faster.
BuildX is now part of of Docker, but you can build and push one tag with multiple architectures: https://docs.docker.com/build/building/multi-platform/#building-multi-platform-imagesLeon Miller-Out
08/09/2023, 7:52 PM➜ ~ time docker run --platform=linux/amd64 ortussolutions/commandbox:latest box version
CommandBox 5.9.0+00721
docker run --platform=linux/amd64 ortussolutions/commandbox:latest box versio 0.03s user 0.02s system 0% cpu 18.731 totalLeon Miller-Out
08/09/2023, 7:53 PMLeon Miller-Out
08/09/2023, 7:53 PM