When creating a Builder using docker buildx --platform linux/arm64
pack creates the builder with a lifecycle linux/amd64
binary
#1958
Labels
Milestone
Summary
@jericop was working on creating a multi-arch builder (amd64 and arm64) using
docker buildx
command, when runningpack builder create
command inside the emulated container executed usingdocker buildx --platform linux/arm64
we noticed thelifecycle
version being downloaded isamd64
but it supposed to downloadarm64
.When pack creates the base builder a
remote
image is created with the default platform, because right now users do not have any way for specifying which platform to use. The default platform is hardcoded to beamd64
in imgutil andpack
uses the base image architecture to download thelifecycle
version.Reproduction
Steps
where for an
arm
builder isDownloading from 'https://github.com/buildpacks/lifecycle/releases/download/v0.17.2/lifecycle-v0.17.2+linux.x86-64.tgz'
Current behavior
arm64
builder is created with the wrong lifecycleamd64
binary on itExpected behavior
arm64
builder is created with the correct lifecyclearm64
binary on itEnvironment
pack info
docker info
The text was updated successfully, but these errors were encountered: