Skip to content
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

Failure to build with pack cli and finch #2254

Open
doddatpivotal opened this issue Aug 29, 2024 · 3 comments
Open

Failure to build with pack cli and finch #2254

doddatpivotal opened this issue Aug 29, 2024 · 3 comments
Labels
status/in-progress Issue or PR that is currently in progress. type/support Issue with general questions or troubleshooting.

Comments

@doddatpivotal
Copy link

Summary

I'm attempting to build a python container using the pack cli. I'm running on a macbook with M1 chip. I've installed pack cli via homebrew and running 0.35.1+git-3a22a7f.build-6099. When run pack build ... I get an error after the builder is pulled. The potentially unusual characteristic of my environment is that I'm using finch for my local docker development. I've added an alias: alias docker=finch.

I am able to pull and list the builder image with finch. But fail with pack.

I totally expect the issue is due to finch instead of running docker desktop for mac. I guess, I'm looking for advice on what information I could get from pack cli that would point me to a workaround or debug logs on how to properly shim these technologies together. finch is a hard requirement for me on my workstation.

Full Error Command:

pack build my-app --buildpack --paketo-buildpacks/python --builder gcr.io/buildpacks/builder:google-22                                                                 ─╯

gcr.io/buildpacks/builder:google-22:                                              resolved       |++++++++++++++++++++++++++++++++++++++| 
manifest-sha256:24d1064b4dd16aac65d6aebdda40e0d7d8481dd3e3aaed1aed52898a494cb729: exists         |++++++++++++++++++++++++++++++++++++++| 
elapsed: 1.3 s                                                                    total:   0.0 B (0.0 B/s)                                         
gcr.io/buildpacks/builder:google-22:                                              resolved       |++++++++++++++++++++++++++++++++++++++| 
manifest-sha256:24d1064b4dd16aac65d6aebdda40e0d7d8481dd3e3aaed1aed52898a494cb729: exists         |++++++++++++++++++++++++++++++++++++++| 
config-sha256:93650f3e1057d8f1f1e4798f6a2868c7a2e2937ba37cdd75edf0d1e3ef31a284:   done           |++++++++++++++++++++++++++++++++++++++| 
elapsed: 1.4 s                                                                    total:   0.0 B (0.0 B/s)                                         
Pulled gcr.io/buildpacks/builder:google-22
ERROR: failed to build: failed to fetch builder image 'gcr.io/buildpacks/builder:google-22': get history for image "gcr.io/buildpacks/builder:google-22": request returned Method Not Allowed for API route and version http://%2FApplications%2FFin

Environment

pack info
pack report                                                                                                                                                            ─╯
Pack:
  Version:  0.35.1+git-3a22a7f.build-6099
  OS/Arch:  darwin/arm64

Default Lifecycle Version:  0.20.0

Supported Platform APIs:  0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13

Config:
(no config file found at /Users/doddatpivotal/.pack/config.toml)
docker info
docker info                                                                                                                                                            ─╯
Client:
 Namespace:     finch
 Debug Mode:    false

Server:
 Server Version: v1.7.16
 Storage Driver: overlayfs
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Log: fluentd journald json-file syslog
  Storage: native overlayfs stargz
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.5-301.fc40.aarch64
 Operating System: Fedora Linux 40 (Cloud Edition)
 OSType: linux
 Architecture: aarch64
 CPUs: 2
 Total Memory: 3.804GiB
 Name: lima-finch
 ID: 15916178-f268-4182-90f2-ac8b2844fccf
@doddatpivotal doddatpivotal added status/triage Issue or PR that requires contributor attention. type/bug Issue that reports an unexpected behaviour. labels Aug 29, 2024
@jjbustamante
Copy link
Member

Hi @doddatpivotal

What happens if you try to use Paketo builders? form your command you are using google builder, but could you try with paketo?

@jjbustamante
Copy link
Member

I am not sure if gcr.io/buildpacks/builder:google-22 is available for ARM architecture, that's one thing. That's why I suggest you use Paketo builders, because, Paketo team is working on publishing builders and buildpacks for ARM architecture.

Another thing you can do is try to build on a x86 machine, which will help you to see if the problem is just the lack of buildpacks binaries or if there is something else

@natalieparellano
Copy link
Member

@doddatpivotal any further thoughts on this?

@natalieparellano natalieparellano added status/in-progress Issue or PR that is currently in progress. type/support Issue with general questions or troubleshooting. and removed status/triage Issue or PR that requires contributor attention. type/bug Issue that reports an unexpected behaviour. labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/in-progress Issue or PR that is currently in progress. type/support Issue with general questions or troubleshooting.
Projects
None yet
Development

No branches or pull requests

3 participants