-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pack build
fails with untrusted builders on Apple Silicon
#1197
Comments
The proposal, "Perhaps It looks like we'd need to propagate some information about the builder image to these locations: Perhaps pack should attempt to pull down the lifecycle image for the same os/arch as the builder image. pack/internal/image/fetcher.go Lines 65 to 89 in e53adb9
We'd accept a contribution :) |
Just to connect some dots, we've had some comments on buildpacks/lifecycle#435 indicating that this issue is causing errors when trying to use Hashicorp Waypoint on M1 Macs (see buildpacks/lifecycle#435 (comment)). |
@briandealwis a fix for this by @aemengo has been merged to |
Apologies, I missed your request @jromero: it works great with pack 0.20.0. Thanks all! |
Summary
pack build
from an Apple M1 will fail when using an untrusted builder. With untrusted builders, the pack library will not use the builder's embeddedlifecycle
binary and instead attempt to run the lifecycle from a separate image:pack/build.go
Lines 329 to 343 in e53adb9
Recent lifecycle images (e.g.,
buildpacksio/lifecycle:0.11.1
) point to a manifest list with images forlinux/amd64
andwindows/amd64
, and so the attempt to fetch an image forlinux/arm64
fails.I guess this is somewhat related to buildpacks/lifecycle#435 except that it's actually useful to be able to use Docker Desktop for M1's preconfigured
binfmt_exec
emulation to buildlinux/amd64
images. Perhapspack
should attempt to pull down the lifecycle image for the same os/arch as the builder image.Reproduction
Steps
On an Apple M1 device, try to build using the
gcr.io/buildpacks/builder:latest
builder, which is not considered a trusted builder.pack build --builder gcr.io/buildpacks/builder <image-name>
Current behavior
Expected behavior
Hoped for the build to happen.
Workarounds
Indicate that the builder is trusted, so that
pack
will use the lifecycle embedded in the builder image.Environment
pack info
docker info
The text was updated successfully, but these errors were encountered: